Well, the only spider that we currently know of that can live underwater is the Diving Bell Spider (very cool, check it out!!). So my guess would be that it either was not a spider (not doubting you, but still an option) or that it fell into the water and as it was not actually live when you saw it, just floating in the current. If it was alive then it was probably drowning when you pulled it out.