Enemies may have difficulty pathfinding to the gate in city walls. After the enemy unit in front of the gate fell, none of the others moved to close. All other units were against the walls, and may have been trying to move diagonally into the gate, which isn't allowed.