I don't disagree that our healthcare system is a joke. But working full-time for a company in no way, shape or form guarantees that you'll get health benefits too. AB5 also doesn't force employers to provide healthcare.
Policy and law isn't always rational, well-informed and wise. All too often, it's what you can get most everyone to agree on based on shared assumptions and biases.