Laser printers were a side project that almost got the inventor fired.
And then they made back 200x the operating expenses of the lab (Xerox PARC) they came from over its entire lifetime.