I believe it is caused by server lag, and if you were clicking and pressing buttons and pressing keys the server thinks you are "spamming" when it catches back up from the lag, and all the things you did hit at once and you are then kicked.
I hope this helped