Mostly because they believe other investors will invest in these companies and hence their investment will pay off.
Seems like 90%+ of tech companies religiously lose money, or maybe its just the 12 that I've worked for in my career? I remember a time when losing a billion/year would result in massive layoffs. Most don't even blink at a mention of a billion lost in a year as far as I can see.