Why Religion?

At least half of the world’s population is religious, according to many global polls. Why are people religious? It offers people a sense of morality, greater existence, belonging, and meaning. How can a less religious society offer the same? Are such societies losing something valuable?