I never thought about why Scrooge and other old timey media showed people wearing hats to bed until I started sleeping in rooms that don't have heat in the winter.
Still not quite sure what's up with the stereotypical long hat with a pompom on the end though.