Along with what John said, stress can cause this to happen as well. Especially in young frogs. Try giving a good soak in Pedialyte or honey water. Also, keep it in a low traffic area for a while so it can become comfortable.