- Point schemes. Every card has some sort of points system that encourages use. The best programs are often tied to specific products like airlines. Sometimes there are multipliers on specific categories of use like gas or travel. More expensive cards have better points programs.
- Protection. You pay with the bank's money, not yours. This means you have an extra buffer to protect against fraud, and the bank is more incentivized to resolve issues. On the flip side, banks can put pressure on merchants by raising/lowering their transaction rates if they are consistently bad actors.
- Card holder benefits. Often cards have extra things like car insurance for car rentals built into the card. They also give you access to a cash line of credit in emergencies.
- Builds credit. If you don't have other major debts like a mortgage or car loan, your credit score can be low, because the banks rate unknown borrowers as risky. Consistent credit card usage alone can give you a medium-high rating, so when you do need to borrow for a home, you can get a better rate. This is a bit of a racket overall, but its better than a random banker judging you based on their personal bias.
If you pay off your card in full every month, the only cost is the yearly fee, which varies by card, my current one is a mid range card for $50/year. Usually you need to spend a few hundred to thousand a year for the benefits to outweigh the cost. That said, this whole system preys upon those who don't pay every month/don't their card enough to benefit from it.
I was taught credit cards were dangerous, and stayed away from them for years. I'm glad I never racked up debt when I was younger. But as a responsible adult, they are a boon.