So yes, 200 years ago doctors knew a great deal far less than today. I'm sure a doctor 200 years in the future looking back on today will feel similarly. There's still so much we don't know & there's a lot of guesswork involved. I wouldn't say they were idiots but the outcomes were certainly not at levels we'd accept today (just as the outcomes today won't be acceptable 200 years from now).
FWIW, the same is true in other disciplines. The 20th century marked a rapid exponential curve in learning. No one really studies any of the masters you note except for maybe Newton & Galileo. The former because the kinematics equations are actually extremely good approximations for Einstein's equations (& also his work on light and lenses remains accurate and foundational to this day). The latter as a warning of the dangers of putting ideology ahead of science and scientific thinking. Galileo's heliocentric model isn't actually used today except as a way to teach kids about the solar system because it's really simple & is good enough at that level (his work on gravity was an important influence for Newton's ideas on the topic).
[1] https://en.wikipedia.org/wiki/Ignaz_Semmelweis [2] https://en.wikipedia.org/wiki/Louis_Pasteur
The way it is often done just creates trust issues for people who really care about accuracy...
However, in medicine, most doctors will tell you that the doctors from 200+ years ago were idiots that did more harm than good.
Why is that? Is modern medicine too hubristic? Were the doctors of ages old really that dumb? Is this a trend that will repeat itself in 200 years?