all metal on a machine is required by electrical safety code be connected to earth ground. in the event something should happen to some electronics and something blows and a piece of metal becomes live with wall voltage, having it connected to earth ground will ensure that your fuse will blow or your breaker in your electrical panel trips.
not connected to ground will result in possibly that metal becoming live with wall voltage and you will be electrocuted dead if you touch it.
all metal... monitor frames, computer cases, cable entry points, metal coin doors, metal control panels, a metal plate a switch is mounted to, quite literally ANYTHING metal.... is absolutely required be grounded for electrical safety. in only very limited specialized cases is a device allowed to be connected to line voltage and remain "ungrounded"
even something as ubiquitous as a trackball connecting to a USB controller....connected to a cable....connected to a USB hub...connected to a computer....connected to a power supply...connected to the wall outlet, still has the possibility, however remote, of being charged to 120 (or 220 depending where you live) volts AC. a power supply transformer failure could cause the computer to get fried due to 120 volts surging through the low voltage wires....charging the computer with 120 volts...charging the USB cable with 120 volts....charging your usb hub with 120 volts....charging your USB controller with 120 volts....charging your trackball with 120 volts...charging any metal that trackball is mounted to with 120 volts.
the lesson here is quite literally...
