This isn't gym class or the beach bar.
Dress like you are trying to make s good impression.
It shows respect to the crew, the travel privilege, fellow passengers, and yourself. I wish everyone in the plane would dress like that. Cons should set the standard for the general public to aspire to.