i think that because Xion was born in CO, she became linked to it somehow, through the room of awakening. this would explain how she got the memories, which were syphoned by the castle adn transfered to her maybe without her knowing. Xemnas could have forced namine to do this.