Mental Model
A min heap always keeps the smallest element at the top, so by removing the smallest element k times, we get the kth smallest.
Analogy: Imagine a line of people sorted by height, but you only see the shortest person at the front. By asking the shortest person to step aside k times, the next shortest you see is the kth smallest.
Min Heap Array Representation:
[ 2, 5, 8, 10, 15 ]
Heap structure:
2
/ \
5 8
/ \
10 15
ā (root is smallest)