Bread is actually not that difficult to figure out. Grains are easier to digest if you grind them up. Somebody didn't want to use their teeth to do so and invented a form of dough. Yeasts are everywhere, so it's just a matter of bringing the dough sufficiently close to your fire to get something that resembles proto-bread.