Weirdly, for the same reason the roads are gritted in winter. Salt lowers the melting point of water, stopping ice from forming. That means your ice cream can be churned at freezing temperatures without freezing solid.