Why are these switches connected to ground?
This is clearly for safety reasons. The idea behind this is to stop the mechanics of the gun as quickly as possible by shorting the motors when the door on top is opened or the ammo clip is removed. Putting your finger into one of these locations could cause injuries when the flywheels used to accelerate the foam bullets are still rotating due to inertia.