Owners of office buildings aren’t stupid. If WeWork created a special entity to rent each building, rent would go up significantly, or the landlord would require the parent company to guarantee that rents would be paid.
Or did WeWork pay for refurbishing the building, so that, if they stop renting early, the building’s owner ends up with a better building than what it had before?