Bond energy is the amount of energy released when of bonds are formed from the isolated gaseous atom.
The bond energy of a molecule is the average bond dissociation energy of all the chemical bonds present in that compound.
Hence, the bond strength between all the atoms in a molecule is not the same so the higher the bond strength of a bond between two atoms, the higher will be the bond energy.
For example: in the bond energy of with is different than the bond energy of with .