 It was an accidental discovery. A guy by the name of Fleming noticed mold growing on a Petri dish that had contained the Staphylococcus bacteria. The mold was later identified as Penicillin Notatum, prevented the growth of the bacteria around it. And so they said, well, maybe that's something.