Simply remembering that fact is language trivia that is easy to refresh when needed.
It’s like asking if intel x86 is big-endian or little-endian. It’s trivial to check but if I haven’t had to use that fact in a while, I likely won’t bother to remember because it’s trivial to search for.
WHERE filters the data before you aggregate it, HAVING afterwards.
That's all there is to it.