In my experience freelancing for 10+ years, in decreasing order of importance:
Can’t find or hire f/t employee.
Need specialized skills.
Only need someone for limited time.
Don’t want to pay employment taxes and benefits.
Get around hiring freezes and quotas.
End run around management, or cover-their-ass move (put blame on outsiders rather than employees).