It happens way more often with cavalry than infantry. The issue is that they are so fast that communication cannot keep up. Or rather, there is a delay between where the game knows where the player is, and where the graphics show them to be. My guess is that there is some kind of prediction happening, and the hitbox/position of the player and where the graphics are not synced.