Why does a frogs skin need to stay moist?

Frogs breathe through both their lungs and through their skin. Their skin must remain moist for oxygen to get through their skin.