You may not see religion as having survival value, but that doesn’t mean that it doesn’t have one. I can certainly think of advantages.
What do all religions (and philosophies, for those less-inclined to the faith) have in common? They’ve all got moral systems, and pretty similar ones, for the most part. I don’t believe in any absolute form of morality, but I do believe that morality has value. All belief systems have some basic tenets that condemn senseless violence, thievery, divvying up mates so that most will get the chance to reproduce, etc. I highly doubt that any culture that promotes a “rape, pillage, and slaughter” attitude toward its own people is going to be very successful.
Humans are highly social animals that depend on teamwork to survive. Belief systems lay down the basic moral framework for us to co-operate peacefully, and political systems fine-tune the specifics and oversee the day-to-day operations.
That said, I could be very wrong about this indeed. Religion and civilization have been around for thousands of years. That is a mere blip on the evolutionary time-scale. We were already seriously worried about all dying in 1962, so belief systems (and their human creators) could be nothing but an evolutionary aberration waiting to be corrected, just like the poor dodo.