My wild guess, then, is that God was invented by some Homo genus community one or two million years ago. In any case, religion and a watchful God (in their minds) kept these bands of wandering Homo species together in a manner that could well have been a pivotal reason why we are here today. Where did I find this theory? I just made it up, but there are books on this subject.
More recently, some more definitive evidence revealed that Homo erectus a million years ago invented fire in South Africa. Why didn't they, then, dominate? Here is the Wonderwerk Cave where cooking might have occurred:
massive gamma-ray burst reached Planet Earth after a 7.5 billion year journey as the furthest object that has been seen with the naked eye. The world awaits 2038 when his archives will be published.