Its to stop the 'scope reading the EMI flying around. Earthing the 'scope probe ground is connecting the long cable screen of the probe to earth. The screen stops radiated interference disturbing the voltage on the measurement wire at the centre of the probe cable.