The etymology of gym is interesting.

from Greek gymnasion "public place where athletic exercises are practiced; gymnastics school", literally "to train naked", from gymnos "naked".