Often, it’s heat. Over time, the light fixture’s wiring is exposed to significant heat energy. This can crack the wiring’s insulation and expose the bare metal wires. When this (now uncovered) metal wiring touches the metal electrical box, another nearby exposed wire, or the fixture’s base, you have a short. Sometimes a loose connection or frayed wire causes the short.