During volcanic eruptions, some of those that is emitted by the volcano are water vapors. With the proper conditions, these water vapors then condense. The precipitation of water vapors from volcanic eruption about 3-4 billion years ago became the origin of the seas.