Frogs don't actually shed to grow like reptiles do. Although they may shed more frequently during periods of growth it is just as every other function in the body speeds up so does frequency of shedding. It is supposedly controled by their Thyroid gland.

Of course it is also a small means of nourishment when eaten and to replace the old protective layer of mucus which has since dried up with the old skin.