Selective breeding
When humans initially started farming, they used selective breeding to pass on desirable traits of the crops while omitting the undesirable ones. Selective breeding leads to monocultures: entire farms of nearly genetically identical plants. Little to no genetic diversity makes crops extremely susceptible to widespread disease; bacteria morph and change constantly and when a disease-causing bacterium changes to attack a specific genetic variation, it can easily wipe out vast quantities of the species. If the genetic variation that the bacterium is best at attacking happens to be that which humans have selectively bred to use for harvest, the entire crop will be wiped out.