Mental Model
A peak element is one that is bigger than its neighbors. We use binary search to quickly find such an element by checking the middle and deciding which side to search next.
Analogy: Imagine standing on a hill and wanting to find the top point without walking the whole hill. You look around your current spot and decide which direction goes uphill, then move that way until you reach the peak.
Index: 0 1 2 3 4 5 6
Value: 1 -> 3 -> 20 -> 4 -> 1 -> 0 -> 5
↑
mid pointer