Answer: It may not be for the reason you think.
The Atlantic
The hard structures started forming before the long reign of the dinosaurs, and they did so for a specific purpose… Tyler Lyson from the Denver Museum of Nature and Science has devised a fascinating new idea about turtle origins.