GFCI: protection from shock
A ground-fault circuit interrupter compares the current going out and coming back. If some is leaking, possibly through a person, it shuts off in a fraction of a second. GFCI protection is required in wet and damp locations such as bathrooms, kitchen countertops, garages, laundry areas, and outdoors.
AFCI: protection from fire
An arc-fault circuit interrupter detects the electrical signature of arcing from damaged or loose wiring, a common cause of electrical fires, and shuts the circuit off. AFCI protection is required on most living-area circuits in new construction and when circuits are extended.
Why a GFCI trips in wet weather
Moisture in an outdoor outlet or fixture can create a small leak to ground. In coastal areas this is common. Weather-resistant outlets and in-use covers help; frequent trips mean something should be checked.
Dual-function protection
Combination devices and breakers provide both GFCI and AFCI protection where both are required, such as kitchens and laundry areas.