Heating temporarily hard water decomposes the hydrogen carbonate ions to from limescale or scale.
Scale or limescale covers the heating elements in kettles and boilers making them less efficient.