They produce heat because the surfaces on small scales are rough like canyons rather than flat like the ocean.As these rough surfaces come into contact with each other they repel.When two atoms are brought very close together they store potential energy.When they move apart that energy becomes kinetic.
1 5 1