Answer
External fertilizers can mate and lay eggs in the water, while internal fertilizers can't and, thus, have evolved an internal water-filled space for this purpose.
Work Step by Step
You can see this in how the amniotes moved further onto/into dry land. They needed a wet place for sperm to swim, so they made it internally.