I'm not so sure. I like Steven Pinker's way to describe it. The whole point of civilisation is to prevent humans from being themselves. Humans in our natural state are horrendous vile and violent creatures. Every institution humans have devised has been designed to protect us from ourselves. I think religion is part of this piece of the puzzle.
Different ages have different problems. And since the Bible is a bronze age product it's a bit out of date. The world was more savage back then. But we're not idiots. We know this. So we can skip those more unsavoury parts. Human psychology is the same, so most of it still applies.
It's called natural selection. We're no different than any other organism or piece of the cosmos. We're nothing special. A huge part of the delusion is believing oneself is something special or privileged or chosen for. Religion is nothing special either. It's a reflection of environmental selection pressure 100% determined by environment. There is obviously, presently, a survival advantage in believing oneself is special. It's empowering I suppose because it gives one a license to perform whatever act one chooses. The most vile people on the planet are the ones who think they are special, licensed to act unilaterally. They are the crazy ones today but generations ago they were the conquerors and the saviors and the deliverers and the leaders. Let's hope that is changing because of the same forces of natural selection that made it important to our survival.
There are a lot more people today, that's why we're changing our behavior. We see the same thing in other primate behavior when we increase their numbers in a given space.