The Greek athletes were not completely naked. They typically wore twine on their foreskins to keep their phalluses from flopping around. This was nicknamed the “dog tie” - basically “leash”. It was only feasible if you were uncircumcised.
https://en.wikipedia.org/wiki/Kynodesme