In Generation II, Shininess is determined by the IVs of a Pokémon. If a Pokémon's Speed, Defense, and Special IVs are all 10, and its Attack IV is 2, 3, 6, 7, 10, 11, 14 or 15, it will be Shiny. Some trainers have randomized IV's so, yeah. It's a thing.