Out of universe: because coming up with villains is hard, and usually unsuccessful. So keeping villains alive means you can keep the stories going and profitable.
In universe: it completely depends on the writer. The one I buy the most is because if he kills, Gordon has no excuse anymore to turn a blind eye to him.