Most turtle species retract their shells when sleeping to protect themselves from predators. Even though your pet turtle will not be exposed to predators, it will still sleep inside its shell since this is a survival instinct for the animals.