It wasn't the first time he was breaking the rules though. He was kicked not because of that particular event but because the virtue-signalling potential of kicking him outweighed the benefits of keeping him around once he lost the election. The Capitol attack was just a convenient excuse for kicking a troublemaker that according to their own rules should've been gone long ago.
If Twitter truly cared about their rules and acted with integrity they would've kicked him way sooner, but they didn't because he generated them tons of "growth & engagement" while he was President.