Here's why:
* Ionic Bonding: NaCl is an ionic compound, meaning it's formed by the electrostatic attraction between positively charged sodium ions (Na⁺) and negatively charged chloride ions (Cl⁻). These strong ionic bonds require a large amount of energy to break, resulting in a high boiling point (1413 °C).
* Covalent Bonding: Cl₂ is a covalent compound, meaning it's formed by the sharing of electrons between two chlorine atoms. These covalent bonds are weaker than ionic bonds. Chlorine gas has a much lower boiling point (-34.04 °C) because less energy is needed to overcome the weaker intermolecular forces holding the molecules together.
In summary: The type of bonding between atoms has a significant impact on boiling point. Ionic compounds like NaCl have much higher boiling points due to the strong electrostatic attractions between ions, while covalent compounds like Cl₂ have lower boiling points due to weaker intermolecular forces.