It's just lag giving you an inaccurate depiction of how far from the mob you really are. Like Rog said, just remove your target lock so you can run at what appears to be with/slightly ahead of the mob, then you'll hit it fine.