Both my dogs do that with the blankets too, try to bunch them up so it more comfortable?!
Is it possible he pee'd on the blanket?? Maybe he was trying to cover it up? I always leave pee pads down at night time in case they have to pee at 3 am. Whenever Mika does a pee, she will do large sweeps on the pad with her nose to cover it up.