In 2017 I saw Twitter advertising in Tokyo’s metro with Trump tweets. Even if their PR said “we don’t like it but it’s in the public interest,” it was obviously in their interest. Twitter has been mentioned daily in the news for the past 5 years, they turned a huge profit thanks the guy.
The only reason they’re acting now is that their excuse is about to expire. If they found another good excuse, Trump would stay.