This is a common misconception. Moths are not actually attracted to light. They are attracted to UV light, which is a type of light that is not visible to humans. Street lights emit very little UV light, so they are not very attractive to moths. In fact, street lights can actually create a barrier effect for moths, making it difficult for them to navigate. This is because moths use the moon and stars to navigate, and street lights can interfere with their ability to see these celestial bodies.