And that arrangement exists solely so that the company whose work you're actually doing can fire you more easily or avoid legal liability.
Yes? Whats wrong with hiring a cook if you need to cook?
How many people do they need to pay to manage this contractor circus? How much effort do they waste sourcing contractors, tracking work assigned to them, treat contractors differently even interns of security processes, and dealing with higher attrition levels? So much waste.
Those kinds of regulations are a prime driver for this kind of contracting.
People that complain about the plights of contractors need to understand the above.
It might mostly exist for that reason, but not 'solely'.
Otherwise, there would be no contractors in eg Singapore.