Current establishment theory says that the earth may be formed from "star-matter" thrown off by the sun. In that case, the earth is child to the sun. Since "star matter" is ultimately Consciousness, then there is more to the relationship than meets the objective eye.

This illustration plays upon that idea. There is an umbilical connection of energetic flow from Sun to Daughter Earth. The star matter still hot within earth rises, sublimes, upward, cooling as it does. On the surface it meets the downpouring hot energy of the sun, and thus it is here that the sun meets itself. The androgyne became two, but is rejoined as the Rebis

Another theory gaining ground is that the earth was congealed from clouds of hydrocarbons, and the heat at the center causes the creation of both Water and Oil in the earth, which distills upward. This explains the oilfields that refill, and water that springs out of granite rock. In fact, biological life more than likely began below the crust. See book Deep Hot Biosphere.
 

Water that is formed in the earth is abundant, and is called Primary or Juvenile water. An excellent intro to this is available for download here: Earth-Generated Water.pdf