A better analogy may be legal work. Law firms offer a way to use lawyers as companies need them, and to share these resources among multiple companies. But all corporations still hire in-house counsel to fulfill the needs they know that they have. None of them say "analyzing law isn't our expertise, so we exclusively use law firms." But almost all of them use law firms, because there are niche specialties that aren't worth hiring for, and times when more lawyers are needed to handle a particularly heavy load.
WeWork can definitely fulfill similar analogous roles in real estate. When Facebook has three people who wants to work remotely in Missoula, co-working spaces will win their business. But Facebook is never moving its campus to WeWork, and any startup with over 50 people and decent funding will realize how unnecessarily expensive it is to use a coworking space, and cut out the middle man. What's left is not a $1T/year business.