Becuase a Shadow Heartless represents every heartless. Just like a Dusk Nobody represents all Nobodies. It wouldent matter anyway. The heartless were on your side, and there were no Keybladers to kill you. Riku was already with the heartless, and Kairi, Donald, and Goofy were way away from you.