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 climbing a mountain range where you can only see the peak if you stand on a point higher than the points next to it. You check the middle point and decide to go left or right depending on which side is higher, quickly finding a peak without climbing every hill.
Index: 0 1 2 3 4 5 6
Value: 1 -> 3 -> 20 -> 4 -> 1 -> 0 -> 5
↑
mid pointer