LEDs are low voltage devices. Hence They require a device / Power supply unit / driver or integrated electronics that convert line voltage to low voltage to run the LEDs. Sometimes The driver has electronics that can interpret control signals to dim LEDs.