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 pile of numbered cards where you always pick the smallest card on top. Picking the smallest card k times means the last card you pick is the kth smallest.
Min Heap Array Representation:
[2, 4, 5, 7, 8, 9]
Heap structure:
2
/ \
4 5
/ \ \
7 8 9