The ground wire (equipment grounding conductor) runs back to the panel then to a ground rod. If there is a ground fault in the circuit, the current will flow on the equipment grounding conductor back...
Very often the ground wire in the fixture is ignored, or just connected to the box, if there isn't a conductor to connect to. This, however, is a code violation as any fixture with a ground wire is...