Why have a credit card?

In case of emergencies, you can use your credit card to purchase goods and services and at the same time, it is better nowadays to have cashless transactions so that we can stay away from robbers.