Shrimp, as with all crustaceans, molt periodically. As the shrimp grows, their exoskeleton becomes too small. They shed the old one and grow a new one. If a shrimp has just molted, the new exoskeleton hasn't hardened yet, making it more vulnerable. It is probably hiding.