I have heard the necessity of religion stems from you're original ideas of your mother. The mother being the first thing you see when you're born. That early on your brain cannot understand that when she is out of site she still exists. So you summon her from nothing when you cry, or so it seems to a baby. As you grow older certain people carry a whole in themselves from their mother being demystified. And they start thinking that there needs to be some unreachable entity taking care of themselves.