Why is a first year FO paid garbage pay, and a 10 year FO makes some number above that for exactly the same job and level of performance?
Your collective bargaining agreement. The union put forth a contract to the membership, the membership (hopefully) read the contract, and the MAJORITY of the membership voted for it. In other words, the majority approved of it and people willfully accept the jobs with stated and agreed upon pay and benefits.