Just like players wearing armour, different mobs have different resistances to different damage types. Wights and crabs are especially resistant to piercing, and so on.