Mental Model
The diameter is the longest path between any two nodes in a tree, which may or may not pass through the root.
Analogy: Imagine a network of roads connecting cities (nodes). The diameter is the longest possible route you can drive without repeating roads, possibly passing through the central city or not.
1
/ \
2 3
/ \
4 5
Here, arrows show parent to children connections.