Contrary to mistaken public opinion, union members are paid commensurate with their skills and seniority. It's foolish to require a company to pay all employees the same regardless of ability and unions make allowances for that in negotiations.
Can you give some examples of this? I'm most familiar with California's public employee unions, which are admittedly an extreme sample, but nearly every attempt to do performance measurement is fought tooth and nail.