Shrimp need to molt, or slough off their shells, to be able to grow.
When the shrimps body reaches shell capacity, they shed the old one and grow a new one. They will hide during this time since they are vulnerable without it.
It takes 48-72 hours for the new shell to harden up.