The hard exoskeleton protects shore crabs from predators and injury, provides structural support, anchors muscles for movement, and helps retain moisture. The downside is that crabs must molt to grow, leaving them vulnerable until the new shell hardens.