I can see the thing about being able to identify certain people, though I've noticed that some of the police have the full formal kit while others just have baseball hats and something like a donkey jacket with POLICE written on the back, and I don't know what decides which type they wear. I guess it's a matter of practical considerations being considered more important than formality in some situations. Sports teams obviously have to have some way of knowing which side is which, though I think the sports authorities are over-prescriptive.
I'm happy for individuals to admire whatever attire floats their boats, and I personally think the Nazi uniforms looked great, but I'm wary of even saying that these days. It's not an admiration of the ideology they represent, it's the way they fit so well, i.e. an artistic and aesthetic thing, not political at all. Similarly I like Victorian frock coats when they fit nicely and I feel that men's formal attire has never looked as good since the late 19th century. But those are my views and the idea of my imposing that on other people is laughable, so I feel justified in laughing at people who seek to impose their standards on others.
I suppose these restaurants and clubs that insist on dress codes think their more conventional customers might stop going if they had to be among people whose clothes they didn't feel were appropriate, though I have trouble understanding how they could possibly be so uptight - I'm strongly welded to practicality and have never yet felt the faintest objection to the guy next to me not wearing a suit, under any circumstances.
I was surprised and glad to see the tellers in Dutch banks actually wore jeans and t-shirts, and I wonder why that relaxed attitude has never spread to the UK and USA. A lot of people in those latter 2 countries seem to feel that there's something trustworthy or otherwise superior or acceptable about a bloke in a suit or a woman in whatever passes off as "professional clothing" for them. I absolutely don't understand that. Anybody can dress like that and then rip you off or let you down just as easily as anybody else, and I'm surprised that not everybody has noticed that.
Back in the 1960s I did hope that the young generation were going to blow the dress code thing away forever, but conformity for the sake of it still pervades many walks of life. It seems to be about group cohesion and the idea that if everybody does the same rituals then the group's individuals will be less likely to have ideas and behaviour that doesn't toe the party line. That might be the core reason why I feel differently to these things than "society" does. I'm just not very geared up to patriotic or civic sentiments, and tend to ignore the notion that people act as groups, particularly large groups such as countries, and I tend to see a group as being just a bunch of different people who happen to be in the same place. Observation seems to bear this out. Two border control officers may have identical clothes and jobs but one is friendly and puts me at ease while the other is sullen and obstructive. The uniform means little to me but the person inside it is real.