They couldn't really sell fab time to other companies cuz they didn't have a good attempt at fabbing for 3rd parties. So they were only fabricating intel chips, that's not nearly as big of a business as TSMC. So basically, TSMC can keep their last 3+ gens of fabs open and making product, while intel couldn't really reap any benefit from keeping old process nodes open.
AMD made a good call selling off global foundries when it was apparent they couldnt keep up with Intel even.
I think the really rough issue here is what happens if China does try to take Taiwan (and this is not unrealistic as China has been more aggressive towards them recently).
TSMC is now a strategic asset for the USA. We've been attempting to get them to build a fab in the states for exactly this reason.
[1]: https://www.tomshardware.com/news/intel-14nm-shortage-h310c,...
https://www.extremetech.com/computing/317769-intel-tops-semi...
Because of mobile, TSMC had so much revenue to advance their process and catch/surpass Intel. Heck, Apple's M1 is probably due to the same reason in the Apple ecosystem, they couldn't win the iPhone either, and IIRC various "what's wrong with Intel" threads stated many of the best Intel engineers went to Apple.
Intel never been chasing pure revenue. They were always conscious of their profitability, to please sock market analysts.
Same with Medtronic, a medical engineering company gets overridden with MBAs and now the only innovation they do is acquiring other companies.