Eggs are relatively large, with enough space to hold amniotic fluid and store enough nutrients to ensure embryo development. After the baby is born, the individual will have a certain body shape to adapt to the land environment.
Hard eggshells or egg membranes make eggs difficult to break, and the less influence from the bad external environment, the better.