When a bond is formed between an electophile and a nucleophile, they both lose energy and become more stable right?
In the context of the picture provided, it seems just a matter of language choice. When energy is lost, it is gained somewhere else because of conservation of energy. So a change in energy corresponding to a gain is at the same time a loss elsewhere. The author of that diagram could have used interchangeably energy loss without loss of meaning.