I think that the theory that religion provided answers to human curiosity centuries before human knowledge developed to answer many of mankind's questions makes sense. It accounts for how strong of a foothold religion gained among peoples of the world. But I don't think that explains the religious phenomena entirely.
If that were it, I would think that 300+ years post advent of the Enlightenment, we'd have seen religion fade out more than it has. There is the paternal aspect, god--a higher powered being--loves me and is watching for me and will right all the wrongs from 'slings and arrows of outrageous fortune' in this mortal life. That fills an emotional void that scientific answers to questions about the universe, the planet we live on, etc. do not fill. Since 'god' allows absolute injustices to occur, we must either discard 'god' as benevolent (necessary to fill that emotional need for a protectorate, even if the justice will be delayed) or we must make 'god' mystical, unknowing.
An axiom of American jurisprudence is that justice delayed is justice denied (laughable for how long cases now drag on), seems to be something religionists do not expect of god. Perhaps that distinction can be attributed to the secular justice systems valuing time more, since it is finite in their construct, but in the religious one of eternity, what's a half dozen or so decades of waiting for it?
But more interesting is the need for 'god' him/her/itself to be preserved as mystical, unknowing. 'God's ways are not man's ways.' Look at the Book of Abraham 3 on JSJr's speculation of man trying to reckon 'god's' time versus man's. Science has answered in ways that resonate better with the human mind what once were the 'mysteries' for which religions postulated 'answers' centuries ago. Religionists-cum-apologists have tried in their pretzel logic fashion to explain how their silly notions discredited by science are yet valuable 'information' dispensed to us from an all-knowing, all-powerful 'god'.
The mystery aspect of 'god' is essential. Once Dorothy, Scarecrow, the Tin Man and the Lion saw the LITTLE man behind the curtain, once the mysteriousness of 'Oz' was gone, they knew all too well that he did not have the power to correct the injustices that had befallen them, to protect them. So too does learning what science offers by ways of explanation.
If the universe always existed and was not yet created, the the power of 'god' is diminished. Might a less powerful 'god' also be impotent at giving us post-mortal justice? of taking care of us? If forces of nature made life possible and shaped it into different, evolving species, is our fate as sentient beings dependent on biology, and when our bodies die, so too does our existence as a thinking entity? Biology is frail and brutish by comparison to paternalistic 'god' looking out for us, assuring us eternal existence, righting the wrongs, looking out for us. Rejecting the age of the earth and evolution in favor of creationism gives us a sense of importance and that there is a protectorate being. We must guard the footprint for mystery against the encroaching science that explains those 'mysteries', otherwise we have a weaker and weaker god, one who cannot protect us and right all the wrongs. Science takes that away from us.