That’s not to say that zombies were replaced by Inferi. Zombies still existed. But they acted more like their spirit or ghost counterpart. When a person dies, and dies in a way that makes them feel like they still had more to do or an emotion so strong; it would tie them to the material plane. Those in the castle had something that tied them to the material plane. 