Your uncalled-for sarcasm is burying several important points.
First, when doctors in the US are sued they need to show they met the "standard of care." If every other doctor in your community is doing MRIs, you have to do them to, even if they provide no health benefit to the patient. Even if you think that MRIs are leading to worse patient outcomes, that's not the standard you are being judged by.
Second, being sued is a very expensive proposition, even if you did nothing wrong, and doctors are very risk averse of going to court even if they are perfectly confident they did nothing wrong and can prove it.
How does the doctor "know" that it's not? Should they not "make sure" instead of just "know"?
While they can have benefits, all medicare procedures have costs as well as side-effects. In fact, some procedures can decrease patient outcomes, meaning even if they were absolutely free you wouldn't do them. They still get done, because whenever anyone talks about effectiveness research, someone else has a fit. (If Democrats suggest it, Republicans talk about the government getting between you and your doctor. If Republicans suggest it, Democrats talk about how they are putting profits over patient health.)
We can't have the grown-up conversations about what procedures are and aren't worth spending money on, because someone insists that all doctors should "make sure."