Those legal protections are easily eroded without unions.
Just look at Finland. Here, the current government first made it illegal for unions to strike when the government takes action to weaken employment law, and then they significantly weakened employment law.
The only protection left is collective bargaining agreements, which can still uphold some of the old legal protections through contract law.
This was also only possible after decades of work by industry lobby groups to significantly weaken unions by targeting them with tax code changes, splitting up unemployment funds from unions (with the employers then founding their own unemployment fund, so that union membership is drained).
Unions are the only defense that workers have. If there are no unions, the employer can have their pick among desperate job seekers, and give them the lowest wage they can live on.