It only makes sense; when your feet are clad in socks and (possibly uncomfortable) shoes all day, it's natural to want to give them some air and wiggle room.
There's nothing relaxing about sitting in a doctor's examining room, being poked and prodded while you're wearing a stiff paper gown and a pair of socks that suddenly feel super awkward.