Theres a few reasons reptiles do this, one being the nutrient boost that Jscott mentioned. Another being that it's a survival mechanism hardwired into their brain... In the wild if they leave the shed laying around, a predator will know to look for a small meal close by, eating their shed skin eliminates any trails that might lead a predidot back to them