I just wanted to underline the phrase "effect on retention".
In North America, lots of talent (i.e. new grads) would straight up not pick companies with dress codes. Pay also tended to be not different, and "prestige" of working for X is not really a thing.
So everything changed. Also, even in the dressed up companies, they had "dress down days". People liked them. So they had more.