Primarily, having a credit card will boost your credit history and score if used properly, which will make it easier to be approved for a loan later. With a good credit score, you can save money in interest charges if you apply for a loan later on. Establishing a good credit history by responsibly paying your due consistently, will mean significant savings during your lifetime compared to those who have a poor credit history or no credit history at all.
Secondly, shopping with a credit card also opens the doors to a wider array of offers and discounts, especially with online purchases. You can also take advantage of the reward points feature.
Thirdly, you will have access to money in case of an emergency, where you need physical cash. It can be used as a temporary solution until you are able to secure additional resources.
Fourth, it is safe to carry around a credit card for making purchases, as opposed to carrying around a large amount of cash.