One of the longstanding theories behind Earth's formation has to do with the transfer of material from the cold parts of the Solar System.
The Earth had formed fairly close to the Sun, meaning that high temperatures in the young planetary disc would have made it impossible for water and other volatiles to stick around.