People agree to all sorts of things and we don't always assume they are morally bound by them. As an obviously-not-comparable example, an employee might agree to almost any terms if it's the only way to get a job, but we still expect the government to limit the sort of thing an employer can demand in a contract.