A lot of those early .com companies could have been profitable. They chose to go for rapid growth instead. Some people here probably remember discussion of users mattering more than revenue.
You see that same pattern with AI now. Products are being provided for free or nearly free, and plenty is being spent on marketing.