In the classical Olympics, as in all Greek athletic competitions, all competitors were required to be nude during the events. You can't compete in clothes.
I mean, who actually cares about things like chafing, sunburns, or the awkward stares of spectators? Let's all just embrace our inner Greek and strip down for the 100-meter dash.
It didn't cause any problems.