Close the cubicle door …
He obviously did, but was unaware that he got his balls trapped in the door jamb.
That's why they are blue.
Or maybe it's caused by exceeding the usual bounds (extravagant, immoderate, excessive or overly physically demanding) acts of sexual self relief and satisfaction. (I didn't want to say "being a wanker")
Rats. Said it now.