Why is it considered rude to wear a hat indoors?

In western societies, removing a hat while indoors is a sign of respect to the owners, that's why it's rude to wear a hat indoors.

Related questions