It's always possible that some business visitor, maybe representing a big customer, gets a tour of the office and gets to see where the programmers are working.
Personally I'd think that visit would be more effective if he sees that the programmers are not dressy business people but people hired for their brains, but clearly some disagree.
> I'm a computer programmer. The computer does not care what I wear.
Amazingly, the computer doesn't care whether you code it in an office, in a café, or at home in your PJs.
Other people tend to care though.
If you're my boss, and you turn into that kind of a control freak, I may cooperate for the moment, but my resume will be on the street by this evening.