You’re giving Musk too much credit here.
He bought Twitter because a) he’s addicted to it, and b) he rushed into a buying agreement he didn’t get his lawyers to vet properly (probably due to his massively inflated “I understand more than anyone else” ego).
He wanted to back out of it, but faced a lawsuit that he was almost certainly going to lose, so had no choice but to go through with the sale. The lawsuit happened because the shareholders at the time realized the company was worth nowhere close to the inflated $44 billion he offered for it, so they weren’t going to back down either.
Everything else that happened after the sale is a result of a man-child feeding his addiction and recuperate from the dumb deal he was legally forced to uphold.
I believe this is from the Watchmen comic, where Dr Manhattan is attempting to rematerialize from being blasted by his own experiment.