History: How did the notion of the freedom of contract create opportunities and constraints on liberty?

How did the notion of the freedom of contract create opportunities and constraints on liberty?