I'm sure it can't be like that for all doctors, but it's been my (unfortunately vast and varied) experience.
Crucially I don’t think there’s a strong feedback loop for specialists. I was frustrated with my urologist. I just got a 2nd (and 3rd) opinion. But the information of “what you were doing hasn’t been working for me” didn’t make it back to my doctors. In part because it takes months to schedule an appointment. They also probably assume if they don’t see me, it just got better. This is partially because medicine is hard and there’s so much subjectivity in patient experiences. Crucially these specialists are in high demand, so they will find work, even if they really are just marginally effective.
Maybe there’s more “feedback” than I see, but That’s just my 2 cents from the patient perspective.