"I took my son to the gym with me over the weekend for two reasons: To get him to establish regular exercise, and to make him understand he doesn't need to be ashamed of his dick like I've heard so many are now. The gang showers he got quite the education. What's the deal with guys getting chubs and hard-ons in the showers?"
First, let me congratulate you on making sure he gets exercise. Too many do nothing but play on their electronics. Second, Bravo! for helping him be comfortable in his own skin. It's what we are born with and we shouldn't be ashamed.
Now, on to the chubs and boners. I'm sure you've been in the gym showers before. Apparently, you didn't pay much attention. Not that I would expect you to. But seeing a man's cock start to get hard when he's washing it shouldn't be that difficult to understand. Soapy, slick hands sliding over and around can cause unintended arousal. It's a physiological response.
If you've given him the proper information and education, he'll know it's normal and something he should shrug off and take in stride.
Whether it's his, yours, or someone else's.