If you air dropped me into a random village in Africa I doubt I could 'code for cassava' but I could almost certainly make a living if I knew how to set up a basic pot still and safely create booze.
Wine has always easy to trade. Mead and ciders, ditto.
Beer/ale, prior to preservative hops, doesn't keep long enough to be viable for intercity trade. The acceptance of hops in a communities' drinkers coincides with a gender change in brewers (documented in PhD dissertations and books).
Distillation always results in a shelf-stable product; ergo it quickly becomes male dominated in a cash society (even supplanting cash in colonial America!).