Salaries are based on supply and demand, not value generated. More developers at your skill level = lower salaries for everyone. More successful companies competing for talent = higher salaries for everyone.
If you want compensation based on value to the company, that's stock options or partial ownership.
Tons of companies fail because they pay their employees more than the value they create.
The salary a FAANG or any company offers is designed to be a win/win. The employee gets a fixed income they can plan their life around and the employer gets the potential upside of generating more revenue. As long as the marketplace is competitive and unbiased this works really well.
Please also remember that revenue != profit. If I run a business and I generate $1.6M in revenue off of a $300k employee, it doesn't mean I'm walking home with $1.3M in my pocket.
And running a business isn't exactly easy. If it was so easy to generate $1.6M off of a $300k employee, you'd be flooded with other companies willing to pay higher and higher salaries. It's really, difficult and rare.