When browsing workspace, I often stumble upon "HR is not your friend" meme, often bolded, and practically never followed by any explanation (see for example here: https://workplace.stackexchange.com/a/96977/64225) .
What is the origin of that meme and what is the explanation of it (if any)? I'm confused with such generalization, especially that it doesn't match my experiences. Such meme seems to ignore the fact that HR people are the same employees as others, and therefore, it is in their interest to represent the interest of the workers, and not the abstract company (sitting on the same horse). Most of them are not psychopaths as well, from my experience they've had less psychopathic traits as people from other departments (they are chosen for their soft skills after all).
Is this just an annoying meme, or it has at least some background?