Maybe this feature was added in so that people razing the A.I.' s cities would have a drawback.

Whenever the towns people kick me out it is always weak troops in there. Looting a town though comes along with lots of resentment