Someone posted this earlier and it’s a good explanation
https://www.linuxatemyram.com/
Here is an Ug level explanation if you want something shorter:
Disk slow, memory fast (even compared to an SSD)
If memory fast, why no use memory
Some things load from disk often but slow to wait. Load from disk in advance and keep in memory so fast. Now use memory better.
If not enough memory we let go of other thing to run program.
How work? Magic.