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.
I dunno my dog can’t see that well in the dark. She just sorta whines and asks to be picked up and put on the bed, or takes forevor jumping off.
I doubt that is entirely based in sight.