The question asks why there are only two dominant operating systems for smartphones. In the early days there were many, but only iOS and Android were able to gain high level of popularity.
Ignoring the extremely rare ones, following were the smartphone operating systems which were competing with each other for the top spot:
- iOS
- Android
- Symbian
- BlackBerry OS
- Windows