In the city where I currently live, lots of small businesses try to claim that their employees are contractors. Those businesses depend on the ignorance of their workers.
In France, companies also like to contract out a lot, either to "freelance" or regular outsourcing shops.
The reason I put freelance in quotes is that there's no such thing here, legally. You have to have some form of company, through which you invoice the client.
But then, whenever you want to get the money out of the company to pay rent and eat, you'll be hit by, more or less, the same taxes the employer would pay. For a given unit of work, it's not cheaper to contract out, there's no real tax loophole.
As far as I know, the state doesn't really care. It may even prefer it, since contractor rates are usually higher than salaries, so they get to get more tax.
The only situation where it would crack down on this is if the would-be employee complained. Since this is considered a "precarious" arrangement, if the contractor can prove that they're basically an outsourced employee, they can ask to be converted to an actual employee and the state will back them up.
However, depending on what you do, people can end up paying less in taxes overall as a contractor because you have more flexibility for deductions. There are very little options for an employee to deduct any expenses in the US, whereas, a contractor could potentially deduct the cost to commute to an office, their cellphone and home internet (if used for work) and even a portion of their rent/mortgage for a home office.
which means you're a contractor, rather than an employee. I do think this is a better way tbh, as you can potentially own all of your healthcare costs, and optimize your taxes properly. And you can probably charge a lot more as a contractor, to make up for the lack of job security etc.
It is a poor reflection of our tax system that running your own entity that you then pay yourself out of can have lower taxes than simply earning money as an employee.