Which doesn't mean anyone forced Musk to buy twitter.
He could have decided not to buy it...
It's not on the board of Twitter for him massively over spending on it, he could have waited and made another offer later on at closer to the actual value of the company, but he decided he wanted it now* and made an offer they legally could not refuse to at least seriously consider**. Then he decided that he didn't want to go through with the deal, having waived the right to do a lot of basic normal pre purchase checks (the stuff any sensible business owner would do on say buying a 500k shop, let alone a $44b tech company), and signed a document that was about as binding as any contract can be in the US for purchasing a company, and signing it so that it was enforced in a state that is renowned for enforcing that sort of contract.
At the time there were lawyers on twitter going "what the heck, did he even bother getting legal advice?" because it was such a stupid thing to waive due diligence, let alone do it with the contract he signed. Remember most/all of the legal documents for the sale were IIRC public, as it was a publicly traded company so the shareholders had to be kept informed and by default in the US most court documents are open to public scrutiny, so anyone interested could find out most of the information.
*To be fair, who hasn't done an impulse buy that they later regretted, although in my case it was "The expendables" on blu-ray, but that was only fiver.
**They have to do the best for the shareholders, and if that meant accepting an offer the shareholders would never see again then so be it, even if they considered it a bad move for the future of the company (the primary responsibility of the board of a publicly traded company is the benefit of the shareholders).