Why it happens
Nocturnal animals evolved with only the moon and stars for light, so their senses are tuned to almost total darkness. Artificial light is thousands of times brighter than moonlight, and it overwhelms the cues they navigate and hunt by.
Moths and many other insects steer by distant light. A lamp tricks them into circling it until they are exhausted or eaten, so they never reach the flowers they were supposed to pollinate. Fireflies, which signal with their own glow, simply cannot be seen by mates in a lit yard.
Bats and owls hunt by stealth in the dark; bright zones become areas they avoid entirely, shrinking their feeding grounds. Because a single bat can eat thousands of insects a night, losing them means losing free, natural insect control — including mosquitoes and crop pests.
Light also misleads migrating birds into cities and hatchling sea turtles away from the ocean, and it makes frogs stop calling for mates. Almost all of this reverses quickly once the light goes away.