It’s not clear, either then or now, that Twitter “had no prospect of making money.” By most metrics, it was a potentially (and in actuality) very profitable company with a history of mismanagement.
It was struggling in the "big tech megaprofit" way, not in the "pay for the servers" way.
A change in leadership (never been a fan of Dorsey) and a refocus on core competencies could have given it a big boost - if it was planned and executed competently. But what we got with Musk is the exact opposite of that. The amount of fuckup is truly amazing to watch.
This entire thing is an extended farce in two acts: (1) Twitter's leadership's inability to turn a highly addictive social media network into a regular money fountain, and (2) the sale of a potential regular money fountain to the single least qualified person possible.