If they Modify MDMA to increase efficacy, or bioavailability they could potentially patent it. Or, if they found a way to reduce side effects.
Small modifications can have that effect. It's why we see so many sulfonamide drugs... small modifications that increase the efficacy of the drug.