The answer is, you’re not out of memory, this article goes into it in more depth, but the TL/DR is that buff and cached are parts of memory that can be freed up if something needs them.
This site gives a slightly less technical description of how it works.