Rock salt lowers the freezing (i.e., melting) point of ice. Rock salt doesn't keep the ice from thawing when you're making ice cream: it lowers the freezing point of the liquid left behind.