Mindless undead tend to stick to one place without a guiding intelligence making them go elsewhere. Sapient undead can go anywhere barring one being revived in some way that forces them to stay in a specific place.