Why doctors don’t like insurance

If you go to the doctor or dentist in the US, you often can get a discount if you pay out of pocket as compared to paying through insurance. Why is that the case? Wouldn’t the physician like to get a big insurance company to pay them as compared to potentially incurring credit card fees…