This optical illusion works because the retina gradually changes sensitivity to adapt to the existing light conditions. Our eyes automatically adjust. This is what allows us to see in diverse light conditions, from bright sunlight to faint moonlight.