/ sunglass legs over hat/helmet

Why do many people wear their sunglasses with the 'legs' over the top of their hat, or (when cycling) on the outside of their helmet straps.
Seems to me like it just makes them more likely to fall off - am I missing something? [Obviously it makes you look like a cool dude... but apart from that.]