Mental Model
The inorder predecessor of a node in a BST is the node that comes just before it in sorted order. It is the largest node smaller than the given node.
Analogy: Imagine a line of people sorted by height. The inorder predecessor of a person is the tallest person who is shorter than them, standing just before them in line.
5
/ \
3 7
/ \ \
2 4 8
Node: 5 ↑
Inorder predecessor: 4