So what are religion and law? They are mechanisms to control the behaviour of essentially selfish people when they live in large groups or societies. In large groups of people there is a natural hierarchy. The strong rise to the top. There are different areas of strength though. Physical and Mental. This pattern has been repeated down through the ages and is easily illustrated by the conflict between medieval Kings and the Church. The kings’ martial prowess and control through random acts of violence - and the church which controlled learning (through random acts of violence) and tried to tell the kings what to do. Calculating intelligence can control a bully, but you’ve got problems if the bully is also smart! See Henry VIII. He simply made himself head of the church. Smart move, eh?
To say that there is a part of the brain which is dedicated to believing in a higher power, unquestionable authority or mysticism, has been explained through the parental model. “The Big Beard in the Sky’ is the parent which wields absolute authority over the developing consciousness. How many times have you heard a parent say, “I’ll be watching you!”. Here is the birth of the idea of God. A person grows up with the belief that someone is always looking over their shoulder and will exact retribution for misdemeanours. Or at least they used to. In this country a parent is no longer allowed to discipline their child because it is regarded as child abuse. Consequently we now have generations growing up who lack the development of the concept of retribution for transgressions in their super-ego. Even the legal system has been ham-strung by rightsist legislation, so even if a transgressor is caught in young adulthood, he knows that there is no real consequence to his actions. We have allowed ourselves to think the common sense out of our society.
Essentially though, Religion is an invention of man for the purpose of regulating the behaviour of others. So is psychology, which in a secular society has become the new religion. Some practitioners of psychology may be very good, just as some priests may be very good. Unfortunately not all are. Psychiatry is essentially reverse engineering personality problems. It’s much easier to observe and record simple cause and effect. The psychiatrist is presented with an effect and seeks to determine the cause. He does so through dogmatic adherence to other peoples’ work. If the template says X is the result of Y minus Z then he bases his solution on this. If, however, X is also the product of A times B plus C, his solution will be wrong.
Both psychology and religion are wielded like blunt instruments, more often than not by people who don’t really understand them (or have their own adgenda). Take a look at Scientologists.

However, their position is often inviolable in societies which elevate their practitioners into positions of power and status.