In electric wire, outdoor light VS indoor light

All the electric appliance need electric wire. Actually, there are some difference between indoor lights and outdoor lights . For exterior led flood light fixtures , used as outdoor lights , it needs three electric wires . And indoor lights needs two electric wires , the more one wire is ground wire , used to ensure the electrical safety.