In this game, the troops that volunteer to go into your army are actually unbelievably stupid. When you sell a building it actually gets demolished, and the troops inside are just too stupid to leave the place as it collapses. It should show little bloody stumps of arms and legs as part of the demolition process.
There, don't you feel better now that there's a logical in-game reason why you lose your troops?