The lag can come from the interpolation on the client side. It consists in moving the player on the client side and correcting later the positions with the return of the server data
This is essential to have a smooth game, but if the client and server are not well synchronized, there is a lag/jump effect
But I note the return, because we can improve the interpolation to avoid this kind of annoying effect