Mental Model
A trie stores words by their letters in a tree, letting you find all words with a prefix fast. A hash map stores whole words as keys, so prefix search needs checking many keys.
Analogy: Imagine a phone book organized by first letter, then second letter, and so on (trie), versus a list of names where you look up exact names only (hash map). Finding all names starting with 'Jo' is easier in the phone book.
Trie:
root
↓
j -> o -> h -> n -> null
↓
o -> e -> null
Hash Map:
{ "john": val, "joe": val, "jane": val }
(no structure for prefixes)