In the beginning, there was no water the earth. The surface of the earth had mountains, hills, flat lands and valleys. As it rained, water flowed from the highest mountains, to the hills, over the flat lands, and into the valleys. The result of the erosion is the rivers, lakes, and oceans that are on the parts of the earth today. This is my best answer to your question.