Ancient cultures didn’t understand how/why and made up stories to explain why (the god was mad).
If there ever was a ‘world covering flood’ where did the water go? Rational explanation: there were regional floods and that was the regions’ ‘whole world.’