Moralizing is just a cheap way to score social points. People care way more about looking like the good guy to their tribe than actually fixing the problem.
Yeah—and moralizing is low-effort: you get status without testing whether your stance actually helps or costs you anything.