The custom of men wearing hats once enabled the wearer, in days gone past, to make silent social statements that are, unfortunately, unavailable to men today.
I clearly remember as a small child, holding my father's hand as we boarded an elevator in Denver, Colorado to ride up maybe 10-15 stories in a hotel. My father was an old time cowboy with his 4XX Stetson beaver hat always either on his head or in his hand.
On the day of revelation, still fondly remembered, we rode together for maybe 3 or 4 stories and the elevator operator brought the car to a stop. The door opened and two seemingly classy ladies boarded. My father, I noticed immediately and took his hat off and held it about waist level.
Soon after the car began moving one of the women spoke fairly loudly about what kind of a "XXXX" day she was having and the other one responded with the same type of vulgarity, which continued, both using words I'd never heard before... My father, unobtrusively but closely watched by the little boy at his side, raised his hands and placed his Stetson carefully back on his head. He had easily recognized he was not in the presence of "ladies" so there was no need to further indicate any respect. His hat remained on his head for the rest of the ride up...