It's not even that.
In most fields, you need lab space and equipment and grad students to get stuff done. And to pay for that, you need funding. And to get funding, you need to publish and apply for grants.
You have to pay attention to the "career" side of things -- otherwise, you won't get to do the science at all.
The same applies to police who aren't actively corrupt, but don't combat the corruption around them. The ones who do fight corruption end up fired 'with cause' at best, or forcibly committed to mental institution or killed at worst.
Bud: Lou, I got a sure thing. Anacott Steel.
Lou: No such thing, except death and taxes. Not a good company any more. No fundamentals. What's goin' on, Bud? You know something? Remember, there are no short cuts, son. Quick-buck artists come and go with every bull market. The steady players make it through the bear markets. You're a part of something here, Bud. The money you make for people creates science and research jobs. Don't sell that out.
Bud: You're right, but you gotta get to the big time first, then you can do good things.
Lou: You can't get a little bit pregnant, son.
Bud: Lou, trust me. lt's a winner. Buy it.
I’ve talked to multiple professors about this and I think it’s not because they don’t care about science. They just care more about their career. And I don’t blame them. It’s a slippery slope and once you notice other people who start beating you, then it’s very hard to stay on the righteous pad[note]. Heck I even myself in the PhD have written things I don’t agree with. But at some point you have to pick your battles. You cannot fight every point.
In the end I also don’t think they care that much about science. Political parties often push certain ideas more or less depending on their beliefs. And scientist know this since they will often write their own ideas such that it sounds like it solves a problem for the government. If you think about it, it’s kind of a miracle that sometimes something good is produced from all this mess. There is some beauty to that.
[note] I’m not talking about blatant fraud here but about the smaller things like accepting comments from a reviewer which you know are incorrect, or using a methodology that is the status quo but you know is highly problematic.