Actually here's why:
God got angry with what the people were trying to do, so he ordered Noah and his family to build a giant ark. People laughed at Noah for building an ark on land, but then they found out, the hard way...
That was the simplified and shortened version
Also that's actually why we have the continents we have today and from some stupid fairy tale about 'earth's plates moving 3 cm per year'