Of low light. Dimming reduces without removing, which is why it is gentler than turning off.
Old English dimm, dark, gloomy, from a Germanic root of uncertain further origin.
Light reduced without being removed. Dimming is the gentler cousin of switching off, leaving something to return to rather than a blank to restart from.