It's called a "Cock Sock" that is worn when spray tan is being applied to their body. I could be wrong, but I don't believe they actually wear that in an actual competition.
You're correct. It's essentially a modesty cover for the tanning process, not something worn during competitions.