Somehow you're closing a circuit with your body. What else were you in contact with? Pulpit maybe? A windlass with its motor is probably a NEG ground by default. For example I once got a tingle when in the water and grabbed a stanchion. Turns out a POS wire was caught under one of the nuts and washers for the stanchion. I was completing the circuit to the neg grounded prop and shaft.