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.
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.