I agree with what you’re saying, but non-competes are an example of free market not a counterexample. The employer is willing to give you x amount of compensation in return for your labor and for an agreement not to compete for some period of time when employment ends.