It's not quite that simple. The law of gravity will not be permitted to apply to you if doing so will cause too much damage to too many people.
But several times the "bailout" kept the institution alive, but wiped out the shareholders. I thought that was at least somewhat reasonable. Wipe out the senior management too (which I don't recall whether that was done), and that might be about as good as can be achieved.
A better structured economy would have more competition and more bankruptcies. And fewer bailouts and government-arranged mergers.
The capitalist system must be able to purge bad decisions and investments naturally or it will eventually calcify like a centrally planned economy.