Some of it was an accounting loss as I understand it. Eg last year they lost $200m-ish, but $600m of that was stock-based compensation. So they were cash flow positive.
Of course taking a company private means you can't use the market to pay your employees...
They weren't losing as much in the past as they are now.