While it might seem strange at first, the connection lies in the fact that luxury was often associated with things like brightly lit palaces, expensive fabrics shimmering in the light, and opulent feasts held under the glow of candlelight.
Therefore, "lux" became a symbol of abundance, extravagance, and the finer things in life, which eventually led to its association with the word "luxurious."