The Sun ignited as a star and started spewing the solar wind into the disk of dust around it. This encouraged disk to clump up into planets. There is some evidence that Jupiter may have run over a planet that was just outside where Mars is now, rubbling it and perhaps sending what would become the Moon to crash into the Earth.
The mass for Earth, plus or minus that collision with what is now the Moon, was determined by the dust in our “lane”. The concentration of water came from ice in that dust plus cometary bombardment in the early solar system.
We get a little more every year, what are called meteorites. Sometimes we lose some if we shoot it off in spacecraft, but that’s nothing like the mass that falls in to the Earth.
Latest Answers