In a sense you could say that belief in a god comes from evolution, because humans are naturally inquisitive. Over countless generations of trial-and-error, our brains became hardwired to solve problems and learn about the world around us. That quality helped our species survive and proliferate.
Our curiosity has gone from being an evolutionary advantage to something much more. We’ve started asking questions about the world that go beyond our basic survival and get to the heart of things, like “why are we here?” and “where does the universe come from?”
A couple thousand years ago, belief in a god was the best answer we could come up with given the information that was available. If you don’t understand the natural processes in your world, it feels right to believe that they are meant to be a mystery, and beyond your understanding. A belief like that offers meaning in a seemingly random and chaotic world.
Belief in an all-knowing god is a comforting thought that explains why things are the way they are, in the face of the seemingly unexplainable. That may be why deities are a reflection of the culture they come from. The ancient Hebrews were a patriarchal society with a nomadic life based on herding livestock. Therefore the god of the Old Testament is a father figure and a shepherd. (“The Lord is my shepherd; I shall not want.”)
If you live somewhere with a lot of competing cultural beliefs, and competition for resources, it makes sense to have an all-knowing god who stands for your beliefs, because it means the right on your side. Belief in your own rightness helps the people band together, and it helps your survival.
However, I don’t think the ancient people were thinking of it that way. An all-knowing god was the most logical answer back then, given the evidence at hand.
We know a lot more about the world now. I think we might be close to a big step forward for humanity. Probably not in my lifetime, but maybe in the next generation’s lifetime, we’ll start exploring space in earnest. That’s the next important step in our evolution, because the Earth is fragile and won’t last forever.
If we want to truly understand the universe, then we can’t rest on our laurels and be satisfied with answers from thousands of years ago. We need to put all our beliefs to the test of logical scrutiny. Otherwise we will miss out on evidence, and the truth, in favor of clinging to comforting beliefs.
Right now, science is the best means we have for gathering and understanding evidence- so it’s our best way forward to the truth. I actually don’t have any preconceived notion as to what the truth is. We’re discovering mind-boggling new shit about the world all the time. If it turns out that the most logical, fact-based explanation is that there is a god, then I will believe in one.
Comforting beliefs got us this far. We’re basically super-intelligent apes. Maybe it’s time to let them go, and be something more?