because there was no science to answer those difficult question, like what is lighting and thunder.
So people inveted god names Zeus, and thought he is throwing around with lighting.
They had god for everything. Nature is very impressive, and hard dot understand without science, so god was a simple explanation.
Now ask yourself this ? If the one and only true god exists, why do people believe in thousands of different gods ?