Due to many reason arabic language has spread but some countries such as Iran and India has preserved their language altough they are muslims. The answer lies under their culture. Changing religion just not change belief of community, it also changes culture of community. Thus Iran and India which posses strong culture and language whose roots are older than 3000 years old. It is impossible to change cultures that old. After the Islam, India has become a Great Britain Empires Colony and Iran was ruled by Seljuks yet the results were same these cultures could preserve itself.
In a nutshell, spread of arabic language inevitable because of