That is intended so the player can escape in case they see a big group of zombies very close to the player character. I just really liked the idea of the movement feeling a bit erratic to convey the sense of panic the wizard must have felt when seeing all these zombies approaching him in his secure spell practice room.