Sorry, not seeing the issue here - RAM is designed to be used. Why would it flush it if there’s no pressure?
If one gets high swap then that’s a problem, but until then it’s simply the OS preemptively caching because “why not?”.
If you’ve paid for 8GB then you’d expect the OS to use it. Not sure why anyone would want the OS to purge memory when it doesn’t need to. It costs nothing to keep it ready and the OS can either page it out or get rid of it as and when needed.
This isn’t just Macs - happens on Windows as well.
https://www.reddit.com/r/Windows10/comments/11zp2ao/high_ram...