The embryos of amniotes are either laid as eggs or develop in the female. These embyros are protected by several membranes, and have a much larger food supply than amphibian eggs.
The 'invention' of the cleidoic egg, and its embryonic membranes, is the main reason why the eggs of an amniote do not need to be laid in water.