If you answer from a physical point of view, it is because there are free electrons moving. Salt is an electrolyte, and its aqueous solution can conduct electricity. Conductive substances have a * * * similarity, there are charged particles that can move freely, and there are charged sodium ions and chloride ions in salt solids, but they cannot move freely, so they are not conductive.
In its aqueous solution, sodium ions and chloride ions can move freely, so they can conduct electricity. The salt solution contains chloride ions and sodium ions ionized by the salt. When the heterogeneous electrode is inserted, the ions will move directionally to form a current, so the heated salt solution can conduct electricity.