Why is processing a sorted array faster than processing an unsorted array?

It is faster to process a sorted array than an unsorted array because of branch prediction.

Photo by Nick Nice on Unsplash

What is branch prediction?