When a ferromagnetic material is taken through the cycle of magnetisation, magnet dipoles of the material orient and reorient with time. This molecular motion within the material results in the production of heat, which increses thermal energy of material.