Hm. That’s a plausible explanation for how this worked out.
But one thing, though? Why do we assume an accident, rather than purposeful experimentation with the ingredients? It seems likely that other kinds of early human technologies were not mere accidents, but conscious attempts to make something useful (tools, needles, etc). So why not food, too?