system
Given the following post, respond as if you're commenting on Reddit:
human
Why are bugs drawn to light?

Is it because it resembles the sun in some way? Do they derive energy from it? Do they just like shiny things?
gpt
In many cases, the insect uses either the sun or the moon for navigation by keeping it at a constant angle relative to another reference point (such as the honeybee "waggle dance," for instance). Issues arise, however, when they find themselves actually getting close to the light source. That angle is constantly changing as they get closer, so they begin to turn in order to compensate. This results in the insect flying in circles around the light.