The animations that don't stay at the center position are mostly that way for demo purposes. But like badlogic says you can also look into root motion.
To illustrate the benefits of root motion, imagine a zombie who doesn't move at a constant speed (slow staggering steps). With root motion you can get that behavior. Without the zombie will most likely movery at a constant speed.