The function of HR in a business is to keep employee costs down.
I imagine that a lot of HR do think this, but I think it's an oversimplification of their duty that compromises the interests of the company. I wouldn't go so far as to say that HR's overall mission is fiduciary.