I seem to recall the notion that humans invented the gods as explanations for natural phenomena dates back at least to the ancient Romans who both speculated there was once a time in human history before humans lived in groups and a time when humans invented the gods in order to explain lightening strikes, earthquakes, wars, loves, and other natural catastrophes.
One problem I have with the notion the gods arose in some kind of proto-scientific effort to explain nature is that I believe that particular notion is no less unfounded and wildly speculative than the notion humans once lived individually -- apart from any community. So I'm curious whether there is any material evidence nowadays that the ancient Romans were not just blowing smoke on this one?
Another problem I have with the notion is that it does not seem to explain several characteristics either of all religions or of most religions. For instance, one of the few traits that is characteristic of every religion ever known is ritual. Some religions say they have no rituals, but there have been no religions in which rituals have not been observed by scientists and/or others. But how does the notion the gods arose in a spasm of proto-scientific speculation account for the ubiquitous presence of ritual? I don't think it does. And therefore it does not account for one of the most remarkable of all religious traits.
Again, the notion religions arose to explain natural phenomena doesn't seem to jive very well with what little we do know of the origins of various religions such as Christianity, Islam, Buddhism, Confucianism, and Zen. None of those religions seems to have originated in order to explain nature. But if that's the case, then how does the seemingly speculative notion that religions arose to explain nature explain the religions that did not arise to explain nature?
I have other quibbles about the notion that religions arose to explain nature, but I hope those will do for now. So far as I am concerned, the notion religions arose to explain nature is not a scientific idea, but a proto-scientific zombie idea that is both wildly speculative and quite bad, and that simply won't die.