Well the most obvious reason is most crabs are either saltwater or brackish and the few freshwater crabs always seem to benefit from some salt in their water, probably the same reason most fish benefit from it as well. It helps in gill regulation, water retention (to a point) and several other biological functions.