The oceans are a by-product of outgassing and the formation of the atmosphere.
It's believed that most of our planet's surface water arrived with the incoming comets and asteroids raining from space ☄ Though these cargoes of water would have turned instantly to steam, because the early atmosphere was extremely hot and remained like that for hundreds of millions of years. When the temperatures dropped sufficiently, liquid water condensed from steam for the first time, forming ponds, lakes, seas and oceans 🌊 but these weren't tranquil ones. Each successive large impact would have partially or completely vaporise the first oceans, as well with huge regions of Earth's rocky surface. The giant impacts finally ended 3.9 billion years ago, because most of the large impactors had been swept up by planets, ejected from the solar system or stored in distant orbits.
Cooling by radiation into space would take place, an ocean produced by condensing rain would form again, but not for thousands of years after the event.
We're having some rain as you can tell from our backyard and fields. The farmer really wanted to start soybeans. Hopefully this weekend! The farmer is very positive about it more so than the farm wife. But we'll see! Is it raining where you are? #farminggracedaily#rain