I grew up in a small mountain town where logging was the primary industry and the cornerstone of the economy there. As far back as I can remember, they had both company loggers and gypo loggers. The term originated back in the early 1900's as a reference to gypsy loggers. They owned their own trucks and just contracted with logging companies. Now they are just referred to as contract loggers.
The companies liked it because they didn't have to pay benefits, and the gypos liked it because they could go where the best paying work was, and instead of the logging company getting their trucks paid for by working jobs, the gypos were able to factor that in with so much per mile, so they would end up getting their rigs paid for.
They are still doing it today. My brother-in-law just retired from it with a truck paid for that's worth around $175,000, so it's not such a bad way to go, however, I would have to mention that he works on his own truck, as most of them do. Anyway, the gig workers have been around for over a hundred years, and in time, if they stay in business, they learn how to factor in overhead and enough to provide an adequate wage and healthcare.
There are so many protections for direct hire workers nowadays, and it can be very difficult to just fire someone like you could do in years gone by. With contract workers, it's not a problem, and the contract workers have more motivation to produce. Anyway, I'm not saying one is better than the other, but it's been going on a long time, and whatever works for both usually wins out.
Itinerant workers or migrant workers have played a part in the economy for many years, and it may be suitable for those who prefer freedom and being mobile, but for those who prefer stability, obviously direct hire provides better security.