As per your own link, the situations where that deal could be broken and the fee would be applicable were very limited (Musk not getting financing, Twitter finding a higher bidder). Musk changing his mind was not one of those situations, it was a binding deal.
Twitter did not sue for the $1b, but for specific perfomance, i.e. closing the deal.