Having a hard covering on the outside in the form of an exoskeleton is a great defense against predators; it helps to support the body and it's like wearing a portable raincoat that keeps the creature from getting wet or drying out. It also protects the animal's soft, inner organs and muscles from injury.
Hope this helps!