Well they were created entirely by people so let's say people were having a drought problem they'd create some sort of rain god to pray to as a means to solve their problems. And of course the stories they created would get passed down and changed depending on who told them.