If you show a very young child (less than a year old, I think) something 'impossible' happening, they will pay attention to it for longer and find it more interesting. So if you hold a ball in the air and let go, but it doesn't fall, or you throw a ball and it goes through a wall, a baby can recognise that those are weird events, and will stare at them for a long time.
If you then give the baby a choice of toys, amongst which is the ball that did an impossible thing, they will spend more time playing with it, rather than equally spreading their attention around. Moreover, they will conduct small experiments that are related to the impossible thing they saw. They will pick up the ball and drop it repeatedly to make sure gravity works. They will hold the ball and bang it on a surface to make sure that the ball does not arbitrarily pass through things.
The brain has a lot of stuff built into it. There are whole sections of the brain devoted to image processing, or understanding smells and taste. These are not inconsequential starting points.