You retain sovereignty in a technical legal sense, but the cost of exercising that sovereignty becomes prohibitively expensive if you can't get the other signatories to agree. That's why trade agreements that mandate extensive intellectual property and other regulatory frameworks are so dangerous.
Treaties passed by the legislative branch of the government are laws. Do you believe that your governments executive branch should be bound by the laws of your nation, or not?