You are absolutely right! Optical illusions are like a magic trick for the mind. They beautifully demonstrate that we don’t see the world exactly as it is; rather, we see it as our brain interprets it to be.
Our brains are constantly taking in massive amounts of visual data, and to process it quickly, they rely on evolutionary shortcuts, past experiences, and assumptions about lighting, perspective, and context. When an illusion deliberately breaks or manipulates those rules, our brain’s "best guess" clashes with reality, creating that fascinating moment of cognitive dissonance.
Some of the most famous examples that have puzzled people for decades include:

