They reinvest the money before it could become profit, mostly by hiring more sales
If you increase payroll in the current year by $1bn you won't make a profit and you won't pay taxes... but it may not be as good an investment.