I don't think they were connected to the power pins, I think it was connected to the shell. it's pretty normal for the shell of a connector to be electrically connected to the shell of the unit and also possibly to the common ring on the headphones. It's normal design to connect all the earth connections together, but when your source for "earth" is broken and attaches the "earth" to a 220v main, things get ugly.
__________________
Work: the 8 hours that separates bike rides.