Our visual system searches to satisfy expectations that are built into our brain. A good example of this is the Gestalt effect: we perceive a group of random dashes as a group, not as individual elements. This works well in many situations, but it makes things like optical illusions so effective as well.