system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5 Why are insects like moths and other summer bugs attracted to light? And how come we don’t see them flying towards the sun during the day?
gpt
There are a couple theories about it.

1 - It's not that they are attracted to the light but rather confused by it. This theory revolves around the idea that such bugs evolved to navigate by star and moonlight, and haven't adapted to fire and modern day electrical lights. So it confuses their internal GPS and they're trying to take a route that doesn't exist.

2 - They are attracted to ultraviolet light because the flowers/plants they feed on reflect ultraviolet light. This theory revolves around the idea that they can see ultraviolet light, especially from artificial sources, and that draws them in.

As to why they are only around at nighttime - that's just how they evolved. The bugs that evolved / mutated to be active during the day would have been picked off by predators and the ones that evolved to be active at night survived and reproduced.