That is exactly what happened. SE itself was a weapon that reacted to its weilders's heart, just like a Keyblade. So, once Riku accepted his identity after fighting sora, it reacted to that feeling and transformed into its current form.
Trust me, I have always been interested in Riku's...