In order to have Sora wake up with all of his memories recovered, Roxas, who held some of Sora's memories, needed to be one with him. In order to make sure this happens, DiZ sends Riku to fight Roxas and bring Roxas back with him.