My previous theory was wrong, so why does this work?
It's called a voltage divider. "The path" does not change. The current changes, because the total resistance LDR1+R1 changes while the voltage applied remains fixed, so the voltage across R1 (which is what you are measuring at U1 pin 2) changes.