A high temperature is needed to melt potassium iodide because it has strong ionic bonds between potassium cations and iodide anions. Breaking these bonds requires a substantial input of energy, and the high temperature provides the necessary thermal energy to overcome the strong electrostatic forces, transitioning the compound from a solid to a liquid state.