Accidental inventions aren't entirely accidental. The circumstances leading to their inspiration may be accidental, but the actual invention is not.
Take penicillin for example, while the discovery of the mold growing inside a Petri dish is accidental, the recognition that the mold was...