Eh, seems like caring about public opinion is hardwired. Biological. At least, that’s the idea per Jordan Peterson’s lobsters. The opinion of others probably shouldn’t be completely thrown out…
That being said, bad religion, bad education, and bad rulers seek to exploit it as a vulnerability, that’s for sure.