People look for order. The weather, the sun, the ocean, they think that can't be by chance. They think something or someone has to be controlling those things. So they make creatures or people called gods that they think are controlling those things.