At one time, they were even the largest maker of lenses in the world, also. So influential that even today, Rochester has smaller optics companies that are world class.
Kodak was not stupid - they designed the very first DSLR sensors and still make high quality monochrome and color sensors today.
They knew that there would a film/digital transition, even tried to plan for it.
However despite all that, the inertia of their business pretty much killed them (along with some dumb ideas, poor middle management).