At some point every company needs someone to handle those duties. Payroll & benefits, recruiting, onboarding & offboarding, these sort of things don't just sort themselves out on the side and quickly become full time positions that require dedicated individuals.
Most of HR is just meeting federal regulatory compliance requirements.