-
As they say, the job of HR is to protect the company from its staff
That's entirely dependent on the management ethos of each individual company though. I've worked in several places where HR has been awesome and actively pushed back against management in favour of the employees.
The "job of HR is to protect the company from its staff" dogma is much the same as the "Listed companies are compelled to put increasing shareholder value first before anything else" trope which is just isn't true across the board (again, some companies are shits and do act like this).
(Note that I'm slightly biased as I married the HR director of a previous company.)
As they say, the job of HR is to protect the company from its staff