Science is a movement that's about simplifying reality to discover principles. (Examples: Galileo ignored friction and air resistance to get at principles of motion. And if something's too complicated, the physicist hands it to the chemist, who hands it to the biologist...)
There's a link between that and critical thinking; one of the first theoretical physicists wrote: "The duty of the person who investigates the writings of ancients [scientists?], if learning the truth is their goal, is to make themself an enemy of all that they read, and ... attack it from every side. They should also suspect themself as they perform their critical examination of it, so that they may avoid falling into either prejudice or leniency." — Alhazen, ~1000, Cairo
However, since science is a social enterprise, it's vulnerable to institutional bullshit. Certainly, Alhazen had to pretend madness to avoid angering the local Powers That Be. Nowadays, scientists must contend with all sorts of brokenness at universities; managerialism/bureaucracy, class/sexism/racism, etc.