The ordered structure
A hash table gives constant-time lookup and no order. A binary search tree gives up some lookup speed to keep the keys sorted.
The rule is one invariant: for every node, all keys in its left subtree are smaller and all keys in its right subtree are larger. Searching becomes a sequence of comparisons that halves the candidate set each time, exactly like binary search over an array, except that insertion does not require shifting elements.
That invariant buys the operations a hash table cannot do. Walking the tree left-to-right visits keys in sorted order. Finding the smallest key is following left pointers to the end. A range query descends to one bound and walks forward. Every one of those is a natural consequence of the ordering.

