The prevailing view has been that
planets mostly accumulate water only long after they form: If a young
planet with water trapped in its rocks collides with another heavenly body or even large debris — common occurrences in the cosmos — the impact would, presumably, drive accumulated water into space,
leaving many
planets bone - dry.