Reptiles lay eggs for all of these reasons except....
To protect the baby inside from being crushed.
To make the baby egg shaped when they're born.
To keep the baby from drying out.
To help the baby grow to a bigger size before they are on their own.