In Discipline and Punish, Foucault talks about how in the early modern era, the actions of subordinate individuals (workers, students, soldiers, etc.) became increasingly regimented through more and more precise specifications of procedures as sequences of elementary actions. Then in the 19th and 20th centuries, we started to see "rationalist" economic efficiency projects like scientific management/Taylorism, which essentially tried to deskill factory workers by fragmenting their work based on time and motion studies.
The gig economy is the neoliberal revival of these scientific management principles, plastered over with the neoliberal ideals of marketization and entrepreneurialism. Just like before, it aims to improve efficiency by quantifying and compensating work at finer-grained scales than ever before.
It has the potential to drastically increase economic efficiency, but at the expense of financial security and the psychological wellbeing of entire generations.