One can assume the ancestors of the amniotes laid their eggs in moist places, as such modest-sized animals would not have difficulty finding depressions under fallen logs or other suitable places in the ancient forests, and dry conditions were probably not the main reason why the soft shell emerged.