As a commenter notes in the Reddit thread, if the player has more than one Pokemon for their Pokedex prior to obtaining it from Professor Oak, then the game will assume it has already been collected.