Some reactions need an energy input in order to take place.
Others give out energy, as when water is added to calcium oxide, or quicklime.
As the molecules of the two substances rearrange to form a new substance, calcium hydroxide, they release chemical potential energy (pp. 14-15) which had been stored between them. The released energy makes the atoms and molecules move more quickly, so the temperature rises.