If you ever served, you would know that anyone wearing a hat in an Officer’s Club had to buy the house a round.
To this day, I take my hat off when I sit inside a restaurant.
I do wear my cover inside other buildings, and even on my way in and out of a hospital which would have been strictly looked down on at one time.