Most laws are a reaction to something stupid, and in this particular case it's a reaction against sandwich shops requiring low-wage workers to sign non-competes.
Really? Those sandwiches must be something special for sure.
It actually seems borderline malicious and evil to me. Modern day slavery.