Presumably the brain is some kind of neural net and it has tuned its predictions.
People think it's magic but it's just practice