A and B atoms are identical (both carbon), so their on-site energies are equal. Setting them to zero fixes the energy reference.