That's because there are two modifiers applying to them - just like for player's turrets.
+ammo_damage (in this case, "Biological" category) affects the acid spit attack, both for Spitters and Worms
+turret_damage for Worms (worms are a turret internally)
And just like player equivalents, these stack multiplicatively, so Worms get way more dangerous with upgrades.