First, magnetic attraction. Friction gives out heat. Force and movement intermingle. And energy has to be released.