There are some humans who lack, compared to others, empathy for anyone outside their social groups. They tend to believe might makes right and follow authoritarian leaders. With these sorts of people, kindness and reason are less effective. And for their love of authoritarianism, they are rarely capable of developing an individualistic moral code based on rationality and empathy for the situation of others. These sorts of people more properly respond to violence and punishment. They, being people who understand that might makes right, will have a tendency to avoid inmoral and destructive things when they believe they will be punished for it, in fact, they may even come to love the idea that someone or something has such authority over them, and they may worship it.
However, the system of law is not always able to observe these sorts of people, therefore an ambigous, ephemereal strategy is required to keep them in line. If the State cannot always observe them to punish even their minor trangressions (and they know this) it is necessary to make them believe that they are constantly being judged and if they fail, they will be punished. Hence, the idea of a supreme authority figure that observes their every move for moral failing will replace the State when it cannot police their behaviour. In this way, their selfish and violent nature is kept in check by an idea. An idea they may come to praise given that it represents the very same authority they idolize. A cruel and violent authority.
Therefore, religion is an effective tool of controlling violent and primarily self-interested human beings. Naturally, they must be relatively lacking in critical thinking in order for the tool that is religion to be effective. Indeed, without these idiosyncratic chains, they'd be no different than sociopaths.
XI Wiki


