Each airline has a right to dictate what will and will not fly on its planes. Here's a list of airlines from around the world that have dress codes for their passengers.
When I was a teenager in the 1960s, bell-bottom pants were popular. I remember the last time I wore them, they had shifted in my mind from looking cool to ridiculous.