A chemical bond is a bound state, which has negative potential energy. Essentially, when a bond is formed, you lose potential energy in the form of heat.
An analogy would be you and the Earth (i.e. gravity). On the Earth's surface, you have no potential energy but if you were elevated (e.g. in...