The first step in fueling is “grounding” the airplane to allow any static electricity that may lurk in the airframe to find a safe path to the ground, and not discharge as a spark that could ignite the fuel vapor.
Source: aopaTraining and Safety Tip: How to ground for fueling