I ascribe the creation of God(s) to sub-rational behavior - paredolia, superstition, emotion born of fear and ignorance. The pinnacle of intellect was realizing the universe operated by rules that could be understood rather than the capricious will of supernatural forces.