Google's annual revenue was $110 billion in 2017 [1]. Even if headcount doubled and salary has increased, that's $7 billion a year. That's not peanuts, but at a company level it's not a massive expense.
[1]: https://www.androidauthority.com/alphabet-q4-2017-earnings-8...