Kinda like how saccharine was discovered because a chemist had neglected to wash his hands after coming home from work, bit into a dinner roll, found it sweet, and then went around tasting everything in his laboratory until he found the sweet compound?
Makes me wonder how humanity ever discovered wine. "If you take grapes, squeeze the juice out of them, let it sit until its been colonized by a fungi, it'll develop a nerve poison that you should drink because it'll make you sick less often than water from that stream." To say nothing of beans, nutmeg, elderberry, or other foods that are poisonous when eaten raw.