why does xehanort want sora?
Sora and his friends changed the world's fate, they did what Eraqus and Xehanort failed to do. So he congratulated Sora because Sora won and proved himself to be someone Xehanort could have faith in, and he turned back into a kid because in his heart that's all Xehanort was.