Solder will not wet a metal carrying an oxide film, and heating the joint makes that film grow faster. Zinc chloride hydrolyses in the presence of moisture at soldering temperature to release hydrochloric acid, which strips the oxide just as the solder flows, and the molten salt then blankets the surface and stops it reoxidising before the joint is made.