From Middle English goute, from Old French gote, gute, from Latin gutta (“drop”). Compare Spanish gota (“drop, droplet”). Doublet of goutte, gutta, and gutter.
The sense shift derived from humorism and "the notion of the 'dropping' of a morbid material from the blood in and around the joints".