The only free and comprehensive online etymological dictionary of the Spanish language
gana f. (Noun) "desire"

Likely conserving a now-archaic sense of ganar meaning "to covet" or "to desire."