Sora rescues Kairi and Riku and defeats Ansem . Sora finds Kairi 's body and confronts Riku , who reveals that he is possessed by Ansem . Ansem explains that Kairi is a Princess of Heart , and that her heart has been hiding within Sora 's body since Destiny Islands was destroyed .