Nevertheless, with all the advantages, the Android OS is not immune to errors and the user keeps facing one or another frequently. So, if an Android user prefers to switch to a new mobile OS, they will look for the apps collection and then decide if they want to make the move.
It is also an open-source OS, so yeah that could be the reason as well. Android OS is the most popular smartphone OS as of today, and that must be because of its vast app collection.