What’s the purpose of HR?

When optimising for the right thing, HR can be transformational.