Eventually, the outer layer of the planet cooled to form a solid crust when water began accumulating in the atmosphere