It messes up the Hall of Fame data until you restart the file. (All of the glitches do)
Missingno is the nice one, programmers actually allowed for it to happen to try and prevent unused memory slots being read as Pokemon and turned into the weirder glitches.
Which they forgot to account for all of them, so you end up with the weird Pokemon.