Were there any cables running near and parallel to the pipes in question? If so, then the shocks could have been a result of capacitive coupling. It wouldn't take a lot of capacitance to result in a noticeable tingle to somebody standing wet in the cubicle.