The melting point of pure NaCl is very high (about 801°C). Adding $CaCl_2$ creates a eutectic mixture which significantly lowers the melting point (to about 600°C), making the electrolysis process more energy-efficient.