Is it ethical for businesses to charge extra to use a credit card?

Why are companies charging extra for us to use credit cards