Where there is a detaching, there is a absorption of energy
Detaching between atoms, nuclear particles or still smaller particles such as quarks or again small particles cause the absorption of energy and overlapping between them release energy.