A freelancer can actually only work around 10 months per year. 1-2 weeks are national holidays, 4-6 weeks is holiday, 1-2 weeks sick leave.
Freelancers also only get paid when there is work to be done. There are gaps between projects that need to be included in the hourly rate. Training is done unpaid. Freelancers usually also provide some flexibility to the customer: the project is cancelled by the end of next week, the freelancer doesn't have to be paid anymore. Terminating a regular employee probably comes with a severance package of 2-6 monthly salaries, and maybe even a legal dispute.
Edit: Also hiring freelancers is much easier. Just hire them and fire them if they don't do their job as good as expected at any time. With employees it's more difficult to fire them if they don't perform as well as expected, but don't behave in bad faith.