In the US, the govt outlawed the software contracting industry in the 80s because they suspected people weren't reporting their earnings when they filed their taxes. forcing everyone to become employees of companies that were better monitored. I suspect the same motivation is partly behind the attempts to eliminate other kinds of gig work now.