The problem is not the salaries or the perks that drives the unprofitability, it's simply the investment model. If you're backed by venture capital, you're goal is to get to an exit 500x larger than the investment ($2M round; VCs don't invest unless they think they may make $1B+). That requires people to focus on growth and world-eating more than any respectable-in-the-moment profitability numbers.