In a dark room, especially if your brightness is > 50%, the light sensor will pick up reflected light.
So if your face is 1 foot from the screen, and you hit a mostly white web page, the bright light will trip the sensor. Same thing (in reverse) if you go to a very dark screen.
If you have a few lights on in the room, this "reflection" effect will be minimal.