Question: why was zaheer in prison?
Answer: He was locked up in that high security prison not because he was a bender, but because he posed a threat without being a bender. The White Lotus Storm Troopers were caught by surprise when Zaheer air bended his way out.