I'm going to answer this from a programmer's perspective.
When writing a video game, everything is built in layers, starting with simple i/oIO (mouse, keyboard, sound, video), then a physics engine is integrated, and then base game mechanics added.
Finally, the game itself is written on top of all this software.
All of Kirito's item'sitems would be part of the SAO game itself, and would be unrecognized item codes in another game.
However, Yui is a more integral part of the game engine, her program would exist in a earlier layer of the game. WhenWhen the game was stripped down from SAO in order to make ALfheim, Yui's layer would have been left intact, allowing her to exist.
It is the same with Kirito's stats, they are more integral than the game items, and are programmed first.
(The fact that his stats transferred actually shows how sloppy & lazy of a rewrite ALfheim was)
Side note: In a game as advanced as SAO or ALfheim, it is possible that items are created as needed by the engine (Thethe Cardinal), every game would have it'sits own set of items, with unique id'sIDs.