Idk if this is an American/West thing but here unions are the main reasons why workers are not exploited and have rights.
The law can give a bit of leverage to people who otherwise have none, but I’d wager there are more people who have leverage of their own than whose employers are only restrained from abusing them by law/contract. Especially in a tight labor market like today’s (outside tech).