Question: why bugs are attracted to light?
Answer: Like a moth to a flame, er, lamp, insects are drawn to bright lights because they confuse the animals' navigational systems. It's a familiar sight, especially in the summertime: moths and other insects gathered around lights like lamps. Often, creatures entranced in such a glow get eaten by predators or overheat.