It has a light. How does the dog turn it on?
I’d imagine it’s either a motion sensor or the light itself is a push-button. Most likely the former.
Dogs don’t see with their eyes when it’s dark. Why would a dog need a light? They have a nose.