Kind of a mystery since the ancestral plant was virtually inedible. How did they see the potential? How did they know to breed it into something good?
The definition of "virtually inedible" gets pretty flexible when you are hungry enough.
For one example, look at the current cuisine of North Korea...