Why does eating some mustard get rid of charlie horses?

It gets rid of it almost instantly because of the key ingredient in mustard called turmeric.