Religion is a social structure for expected behaviors that some people find more palatable by belief in a super powerful being. It's an opiate to keep people in line.
Some things are a net benefit to society but still not easy to choose. Like having more kids.