It's because of the existence of a minor resonance structure, where the double bond is between the nitrogen and the other oxygen, with a positive
charge on one oxygen and a negative on the other. Because of this resonance structure, the O-N bond doesn't exhibit perfect single bond character, and
is actually somewhat rigid |