What is an AFDD (Arc Fault detection device) and why are they needed?

Arc Fault Detection Devices (AFDD) prevent the risk of building fires when they detect an electric arc fault in a circuit and isolate the faulty circuit.