The reason for this is profit doesn't factor in investments. Let's say I invest $1200 to acquire one customer who pays me $100/month. If you look at month 0, I have -$1200 in profit. At first glance, this looks really bad. Alternatively, you can see it as I am now making $100/month. Because of the $100/month, after one year I'll have made my original investment back and still be making $100/month. After two years, I'll have made a profit of $1200.
This is probably exactly what's happening here with WeWork. If you look at things in aggregate, WeWork is spending a ton of money investing in opening new offices while they make a much smaller amount of money from their old offices. This makes them look like they are lighting money on fire. In reality they are investing their money in new offices and expect each office to make a return on investment over a few years. As long as they are spending more money investing in new offices than they are making from the old ones, they will appear unprofitable.
For a typical software business, a pair of metrics that are much better than profit are CAC (cost of acquiring a customer) and LTV (the life time value of a customer). As long as a product's LTV is sufficiently greater than CAC (a successful SaaS company typically has LTV > 3 * CAC), it makes sense to invest more money into the business.
This For Entrepreneurs post goes in great depth about good ways to measure a SaaS business and gives you a few models you can play with: https://www.forentrepreneurs.com/saas-metrics-2-definitions-...
Now all of this doesn't mean that WeWork is a healthy business. All it means is that we can't tell based on how much money they are losing alone.