It traces back to her childhood encounter with Aqua in Radiant Garden. Kairi ran towards her and hid behind her, and in doing so she touched Aqua's Keyblade. Aqua remarked that she could feel the light, and the reading is that she sensed the light within Kairi and inadvertently granted her the ability to wield one.