Think of it like casino chips for crypto. If you want to buy lesser known cryptocurrency, no one is trading directly for dollars, the trades are happening from one crypto to another. You spend your actual cash to buy in, then you can cash out when you are done. But if you are trading all the time, looking for opportunities, you don't want to just leave everything parked on some random cryptocurrency, because it's highly volatile. Stable coins are like the casino chips because they hold a relatively stable value, so you have your money in those and it's ready to trade whenever the need arises.
Stable coins can hold a stable value because they are usually backed by some actual assets like money and securities and stuff.