First, "physician" is not equivalent to "practicing doctor in a clinical setting".
Second, a good physician - even a run-of-the-mill family doctor - should be collaborating with their peers. They're keeping up to date on new practices and informing the next generation of those practices by reporting observations of the results of today's practices and any anomalies that arise.
I don't think it's unreasonable for some developers to make more than most physicians or for most physicians to make more than most developers. Neither field is narrowly defined.