Laws like this stem from an attempt to ban the use of flood lights to stun deer and thus make a shot easier. Like much firearms legislation it's still intentioned but leads to absurd scenarios.
https://www.sepco-solarlighting.com/blog/why-wildlife-friend...