It doesn't actually do damage, it's just like throwing a snowball at a mob, where the entity displays its hurt sounds and takes damage knockback and animation but doesn't actually take damage. Found it funny that an ice related origin has this interaction with snowballs.