poncho
I'm not sure of the accuracy of my answer but I think that there's a metal cable running from the fuel bowser nozel, embedded in the hose wall which is earthed.
When the fuel nozel is inserted into the filler cap it makes contact with the metal surrounds of the filler area and thus earths the car and hose.