Also, Nokia didn't have to choose between Microsoft and Google. They could have done both, like Samsung did.
In terms of attracting programmers, Android could be programmed on Mac, Windows or Linux. A developer account was a one-time fee of $25. Apps needed no approval.
Windows Phone had to be programmed on Windows. A developer account cost $100 a year or so. Apps went through an approval process. Not that different than Apple, but Apple was first to market with a modern smartphone and could get away with this.