An HR department is not required by law, but they oversee what is actually required: That a business adheres to federal and state labor laws. This can be done by anyone at a company. Outside of that, HR's main purpose is to prevent or settle liabilities before they turn into lawsuits that hurt the company. They're basically spies.