The problem with your example is that you are making the assumption that someone with 10 years of experience is less likely to make mistakes in practice than the person with 0 years of experience. I've seen several examples over my career where the technically "more experienced" individual is not truly the better suited for the job. You won't know that until you hire them and, in my opinion, is a good reason for why you should pay someone based on the job (so long as they qualify for it). It doesn't mean that everyone needs to make exactly the same amount, because I think there is an argument to be made for someone who has more tenure at a company to retain them and for their role-specific experience. But that shouldn't be a >5% difference.
Also, I don't see how people can't see that this is precisely the logic that contributes to women generally getting paid less for doing the same job. Anecdotally, I joined a company and had about 7 years of experience. My "peers" in performing exactly the same duties as me had probably about 25 years of experience. I was responsible for the 2nd largest revenue generating P&L that generated the highest profit margin (which I actually turned around from losing money in 6 months). I found out I was getting paid $70k less than "my peers." Are you going to tell me that despite performing the exact same job and actually performing it objectively "better" that I should have made less money? This is the kind of stuff that routinely happens to women.
Also, I don't see how people can't see that this is precisely the logic that contributes to women generally getting paid less for doing the same job. Anecdotally, I joined a company and had about 7 years of experience. My "peers" in performing exactly the same duties as me had probably about 25 years of experience. I was responsible for the 2nd largest revenue generating P&L that generated the highest profit margin (which I actually turned around from losing money in 6 months). I found out I was getting paid $70k less than "my peers." Are you going to tell me that despite performing the exact same job and actually performing it objectively "better" that I should have made less money? This is the kind of stuff that routinely happens to women.