Nokia and Research in Motion needed a modern operating system. They could have bought Palm or Android before Google did, but they didn't. Today, it's probably too late, and at the time they would have been criticized for overpaying, but as they say - shift happens.