why do the employers prefer hiring rather than contracting?
I still hire part-time contractors for things, but for anything that's time sensitive or availability is a concern, I prefer to have a full-time employee.
People have a different learning and onboarding speed, but it generally takes months for an engineering hire to “break even” and be able to pick up most tickets on their own. So we generally prefer people that stay longer.
That being said, there is also value to bringing in people with different backgrounds, experiences & perspectives. So sometimes freelancers or consultants can be good choice.