Ground-fault protection of electrical equipment is required by the National Electrical Code (NEC) in order to minimize the damage to the equipment in the case of a ground fault.