You seem to forget how Xemnas and the organization works. They're under covert status, so even though they took control of the lower sections of the castle and town, it doesn't mean Maleficent couldn't rein control of the inner parts of the castle and the rest of the land. Also, for the most...