Web browsers have caches, for example, where they store content from web pages, so when you return to those pages, your browser doesn’t have to load that content again.
Operating systems like macOS have caches, but so do individual apps. Quite simply caches are areas where computers temporarily store data that they’ll likely need again soon. Macs, like all computers, use caches to help them maintain performance.