Hi there ~
You probably have reaction to the poor exercise hygiene equipment at the gym as well as overly sweating. I hope you are able to clean your equipment before and after using and also take good care of your sexual hygiene. I would recommend that you see a dermatologist
if the problem persists.
I hope this helped. Take care and have a lovely day !