Why are all gym memberships like this? The first thing I check before starting a service is how easy it is to end it. I've not been able to find a single gym with reasonable terms.
This is something that needs to be regulated somehow.
In the meantime, one could always pay with a prepaid card and then just never add funds when you decide to quit. Then just "return to sender" any mail they try to send you.