There was actually a recent [paper](https://www.nature.com/articles/s41467-024-44785-3) about this (not ELI5). They’re essentially wired to assume the brightest light is up, since until we came around it was either the sun or moon. If they pass by a light source they turn to keep it above them, which can cause them to fly in tight loops around a porch light.
Latest Answers