If it's a one-off (and the current doesn't continue to flow), an electric shock is normally caused by several thousand volts of static electricity building up on the car which is insulated from the ground by the rubber tyres. It is then earthed when you touch ground and the car. That is...