They didn't quite see the big picture, it's not that they didn't see it coming (they were already in it), they just didn't think you could do so many things so well and that people would want to do it.
MS lost because they weren't ruthless is copying iOS. Google won the licensed market because basically they dropped everything else they were doing in mobile (copying blackberry) and put it all behind copying iphone. Samsung did the same thing with their Galaxy line. These are the kind of moves 80's and 90's MS would do without blinking, they understood that "second place is a set of steak knives". But late 00's MS -- spoiled on decades of success and perhaps a bit cowed by EU antitrust -- couldn't pull the trigger.
They did have a mobile operating system, a mobile .NET framework for application builders, and a bunch of early PDAs shipped with Windows Mobile.
Apple just managed to redefine the mobile market completely, and make Nokia, Sony/Ericsson, Research in Motion, Kyocera and others irrelevant. Those others were supposed to be producing hardware devices that would license Microsoft's mobile products.
So they had a vision, just turned out to be wrong.
IMO, Microsoft (and other handset makers) focused a lot of their energy on the enterprise market. Looking at screenshots of early handhelds show productivity as one of the "bullet points on the box."
Apple had the luxury of approaching the phone market from the other direction. They've spent several years making the iPod, that a consumer-oriented phone was a natural evolution of that. They also knew how to sell it.