The story
Uncertain. The suggestion that it is a humorous representation of a “received” pronunciation of grouser (“one who hunts or shoots grouse”), or from the humorous plural grice of grouse + -er, based on the supposed resemblance of train spotting to grouse-shooting, has been reported several times independently, among other speculative etymologies.
Etymology from Wiktionary, CC BY-SA 4.0.