Then again, this answer might help you...
The earth was a hot rock. The volatiles from meteorites and the gases from the earth mixed. The water comes from inside the earth it was brought to the surface through volcanism. After years of cooling, the gases condensed and formed liquid water.
Lamberu, Answers Expert