Yes, apparently has something to do with the "auto stationing" mechanic to keep armies from sitting on top of cities, but not in them. It's decidedly annoying, the only workaround I've found was to fill the capital with a bunch of heroes and crap troops.