This is one of my favorite examples of people who cite Kodak as being short-sighted - which in hindsight I don't think they were. They KNEW the end was coming.
Yes, Kodak sold cameras but they never made money on cameras. They made (and sold) a LOT OF film, and processing chemicals, and photo paper, and developing services, and processing equipment, and stuff for movies and slides and microfilm, etc. ad nauseum - NONE of which exist for digital cameras. If they had embraced digital photography at that point, they would have alienated 95% of their business, and they knew it because Kodak had the one thing for digital photography that nobody else had - the patent. Can you imagine the reception the guy who developed digital photography got from the bosses at Kodak when he came to them with a product that literally eliminated the vast majority of how they made their money???

It's no wonder they sat on that patent!
Kodak knew in their bones that the end was coming, just a sure as CDs replaced vinyl records and MP3s replaced CDs and streaming replaced MP3s. They rode film photography to the bitter end, but in the end they knew they just couldn't compete with foreign manufacturers making digital cameras because there was no easy conversion from their existing business to the new model. It was sad, but it was as inevitable as the tides.