It's your punishment for cheating.
The AI has become so smart that it can even detect cheating and kills your general as payback, because it can't cheat!