So
Your visual system does not measure and
report the exact physical nature of the visual
world.
It collects some data, and makes guesses.
Optical illusions take advantage of the
guessing strategies.