It's so hard as an interviewer not to have a higher score for candidates who look, act, and dress like me. I've caught myself doing it before and I hate it.
And the worst part is that most people (myself included) have a very hard time even recognizing they are doing it, which means it actually is good advice. Play on the interviewers unconscious biases. Ugh.
It seems you're upset that an interviewer might be biased against someone for wearing a suit. That's fair; an interviewer shouldn't be biased against a candidate for that. And most wouldn't be -- consciously. But subconscious bias can still exist. It's best to skip the suit, particularly for a very technical role.
The typical interview rule, IMO, is a good one, at least for men (women unfortunately are under very different pressures): dress one (and only one) notch nicer than the people that will be interviewing you.
There are some rare situations where dressing down compared to your interviewer makes sense, but a normal dev looking for a normal job is not one of them.
Dressing abnormally does indeed show that you're either unfamiliar with the norms in the industry or you're deliberately violating them. Agreed.
In finance, it's sort of reasonable to be concerned about someone showing up in jeans and a hoodie. A good part of that job is being able be "corporate" and adhere to norms. If you can't do that in an interview, how will you treat clients?
In a coding interview for a tech company, adherence to social norms is not particularly valued. Weirdness is tolerated, if not celebrated. So it's fairly different.
Tech companies would be far more accepting of a candidate in a suit than a finance firm would be of a candidate in jeans and hoodie. That said... it's still probably best to just avoid the risk of subconscious (or even unfair conscious) bias.