Major spoilers for Kingdom Hearts: Birth by Sleep ahead.
Kairi's arrival on Destiny Islands is tied to a protection spell. About a year before she shows up there, Aqua casts a protective charm on her. That magic is what ultimately guides and safeguards Kairi, bringing her to the island where the main story begins.