You deer
My guess is because the demo is technically a separate game from the original, meanwhile a code like "THANKYOUKIRBY" is from within the base game itself, therefore its legal.