I'm sure the shedding process isn't terribly comfortable for a snake and with their sight likely compromised a bit (not that they are big sight hunters but still), well it just makes sense that they'd rather hide until the whole deal is over with and not be bothered by us.