Oh, right, duh. The water or water-materials got "splashed" into space with the debris. That makes sense.
It's not that the actual physical water got splashed on the moon, but the materials of the earth at the time did, and so naturally as gravity pulled it together and cooled, water formed, much like it did... on earth.
Inri, water didn't come from anywhere, but developed through chemical reactions.