The reason the previous owners were eager to dump Twitter was because Elon offered far more than it was worth, despite it being a cash flow positive business.
He backed out because he was foolish enough to think that the legally binding offer was not in fact binding.
He backed out because he was foolish enough to think that the legally binding offer was not in fact binding.