Valuation strategies have changed significantly over the last decade or two. Selling products at a significant margin used to matter a lot, but now recurring revenue matters much more (e.g. subscriptions) regardless of margin, even if it's negative. This means that startups that would have quickly gone bankrupt before now get round after round of seed funding, and can even make it to IPO, without ever generating net income.