A matter of skill, but also luck.
Took me ages to get rat pacifist without savescumming for the rat king at the start