Then perhaps you are not actually looking at religion.
A conviction that one's own life matters, that everything ultimately make sense is essential for survival, and much more so for thriving.
Except, maybe, religions that teach otherwise?
Religions provide examples of frameworks for the conviction that one's own life matters and that everything ultimately make sense. As such, a religious outlook of some kind is crucial for survival.
If that were true apes and other atheists wouldn't survive.