While only looking at electronegativity, other trends come into play as well.
Bromine is atomic number 35, and Barium is 4.
Hydrogen is 1, and Nitrogen is 7. The valence shells around the hydrogen and nitrogen are a lot lesser. Hydrogen bonding is a very strong force. Despite the...