Hermit crabs protect their soft bodies by inhabiting empty seashells, which act as a mobile home and provide them with a protective shell. They carry these shells on their backs and can retract into them when they feel threatened, keeping their vulnerable bodies safe from predators.