Science is chuck full of competition, posturing, and political shenanigans - especially for popular subjects where there is fame and fortune on the line. Scientists are human beings. They, just like the rest of us, want to be right and to be rewarded for it. We humans are often not graceful about being challenged or proven wrong.
Worse yet, this messy process is filtered and spun by politicians and political media before being presented to the public.
Really, it's remarkable that things have worked out as well as they have. We have at least three viable vaccines being widely distributed and only a tiny uptick in mortality in the mean time. Things could have been much better, but they also could have been much worse.