Because wages are a small part of the total compensation package - leaving out bonuses, health, dental, vision insurance policies, 401k (with matching), employee stock purchase plans, stock options or stock units awards, access to food and on-site services, company cars, etc.
They’re also not stagnant https://tradingeconomics.com/united-states/wage-growth