Mental Model
The inorder predecessor of a node in a BST is the node with the next smaller value when we list all nodes in order.
Analogy: Imagine a sorted list of books on a shelf. The inorder predecessor of a book is the book immediately to its left on the shelf.
5
/ \
3 7
/ \ \
2 4 8
↑curr=4