Technically moths aren’t draw to light, they simply become disoriented and are unable to tell which way is up, due to assuming up is roughly aligned with the direction of the light, which results in careening toward it when they try to fly.
Yes, I’m a nerd.