That's because their Cross-Kingdom Pass hasn't expired yet! 

Note that, if your city is still inside of a Rival Kingdom when the Event ends, you may stay until the Cross Kingdom Pass expires. Once it expires, your city and armies will be immediately teleported back to your Home Kingdom. Therefore, be cautious because it means the enemies can stay in your Kingdom until their Pass expires as well!