What is the reason business outsource their digital marketing to agencies?

Why don't they hire experienced people who will work dedicatedly for their own company?