Because Namine is a Nobody, in the same way Roxas is. Nobodies exist as incomplete beings, and the drive to become whole again is what pulls Namine back toward Kairi.
It mirrors Sora and Roxas exactly. Roxas is Sora's Nobody and eventually returns to him; Namine is Kairi's, and her arc follows the same logic. The reunion is not a twist so much as the rule the series established being applied consistently.