There are a number of theories for possible sources (it could be a combination of all these things):
– Water formed from outgassing as the Earth cooled down.
– Water synthesised by early chemosynthetic (like extreme bacteria) and photosynthetic (like plants) life.
– From collisions with ice rich comets/meteorites/protoplanets.
Comments