It probably wasn't salt, but flux. Here's a brief explanation:
"The most common flux used is borax. The purpose of the flux is to melt and coat the billet protecting it from oxidization. It also helps to lower the melting point of the scale making it liquid and enabling it to squirt contaminants out with the flux."