Outsourcing business functions is a matter of fiscal strategy. And viewing outsourcing costs as an investment rather than an expense should be part of that strategy.
As organizations grow in size, so does the associated support functions within that organization. More employees means more HR and payroll tasks. More employees require more internal support, which means more employees just for those functions. And this can become counterproductive at some point.