Is is, in many interesting ways. In the sense of Dawkins ("the selfish gene"), who coined the term 'meme', religions are complex memes. Ideas which need hosts to survive and spread. This puts evolutionary pressure on these ideas to become good at convincing brains that:
"This idea is worth listening to. This idea is worth remembering. This idea is worth spreading."
Naturally, religions became good at these things or went extinct. In many cases, their evolution converged to extremes. A powerful god is obviously beaten by the all-powerful God. A stronger incentive than living a decent life on Earth is obviously receiving eternal bliss in heaven.
Religions take great efforts to emphasize they are very important - sorry: the most important - ideas. And some which emphasize how important it is to spread them happened to spread, driving others extinct in the process.
To this day, religions evolve in the attempt to adapt to their changing environment of culture, politics and technology, lest they go extinct. New denominations form and rise in the process.
I agree to @capt_wolf@lemmy.world's observation. Does the frequent inclusion of these very existential ideas ("how to not die") hint at how early in the human evolution religions started playing a role? If so, if religions helped early humans survive, that would make being susceptible to religious ideas an evolutionary advantage for early humans. So maybe there was a synergy between genetic evolution and memetic evolution. And maybe that's also why conspiracy theories are such a pest, piggybacking on the same mechanics.