Another thing not mentioned here is that employee productivity is a variable that is almost always invisible before the hire happens. Leonardo DiCaprio can command a premium because he is identified with the work he does. This is not the case for tech workers who's work is typically invisible. Suppose you are a 10x DevOps sorcerer. None of your potential employers will know that in advance, so they are all only willing to pay 1x salaries.
FAANG companies pay higher across the board, not because they want to, but in the hope that by overpaying 90% of their employees (relative to market) they will be able to attract top 10% candidates whose skills are hidden until after the hire happens. If they could price discriminate in advance they would.