I should be working really but I can't resist sharing Noah Yuval Harari's take on this, as it is v interesting.
Harari traces our belief systems back 15,000 years to the first evidence we have found of a belief in a deity. (The first Briton was recently dated at 10,000 old, so basically we have believed in deities ever since we had complex language and could imagine something on the other side of the hill).
We started off as hunter-gatherers. We were at risk from the elements and the animals and plants we needed to survive, so we venerated them. We were animists.
Then the first agricultural revolution began. We domesticated animals. We needed to be at the top of the tree vis a vis other species. We were still intensely vulnerable to the elements etc, so we developed polytheism, but lots of the gods were now in our own image.
Eventually (over thousands of years), each of the main religions switched to monotheism, as the areas over which people exerted control grew larger, and more in need of effective mechanisms of state control. A monotheist religion in the image of man was a good solution, for all sorts of reasons.
There are plenty of other "inner" reasons to do with our need to build narratives and to have faiths that help explain the evolution of organised religion, but Harari's story, which he explains in his book "Sapiens" is really well set out and worth a read.
Where it gets disturbing is in his sequel - Homo Deus - where he looks for the "gods" of the future. There is no reason to assume that we will not have "gods" in the sense of universal belief systems and ideologies in the future. Indeed there are lots of positive reasons to be grateful for the organising principles of the great organised religions, however flawed.
Harari expects the gods of the future to come from silicon valley (stay with me!) Health systems, instead of being used to make us better, are already evolving so that those who can afford it can "improve" themselves. This is the future he sees - people with seriously enhanced cognitive capacities, paying for a physical and mental upgrade every so many years, while the rest of us are, well frankly, inferior.
The impetus behind state health systems in the early 20th C was not mainly "benevolent", in the sense that we "ought" to make people better just because it is the "right" thing to do, since we are (say the Christians and the humanists) at the top of the tree and all entitled to dignity by virtue of being human. Instead, it was utilitarian - e.g. we need healthier people to fight in WW1, build bigger soviet factories, whatever.
Sooner or later we will reach a point when there is no "utilitarian" need for a lot of people. We need embedded "religious" belief systems (whether humanist or theist) as a bulwark to protect ourselves from pure "science" when we reach this point.