Sun and UV exposure. The white/cream cardboard used for GameCube cases (and many early 2000s Nintendo boxes) contains lignin and optical brighteners that oxidize under UV light, turning yellow over time.
Yellowing is cosmetic age wear — not damage to the game itself.