Atlassian makes zero profits because it reinvests them in growth (hiring, acquisitions). The common sense here is that you return profits to shareholders only if you can't grow fast enough. That's the case for a lot of other industries where you have single digit growth in good years. But if you can grow 30% annually, you bring much more value if you reinvest your profits.
>It is when you’re a software company and the marginal cost of the goods is zero.
$600mm annual sales and marketing isn't cost of goods but the method of accounting that I subscribe to includes such costs as a fundamental cost of production delivery.