Microsoft and Google don't fire all their higher cost experienced engineers in favor of cheaper fresh graduates every year. They also don't forbid new engineers from making more than any longer-tenured ones.
Why is tenure-based compensation an efficient use of dollars in primary education but not elsewhere?