The oceans formed as a result of:
(1) oxygen producing organisms
(2) out gassing from volcanoes
(3) meteorite impacts bringing water from outer space
(4) transpiration from early plants