A lot of software - perhaps the majority of software - is written in the wrong language because “what language is the developer most familiar with” was a more important consideration than “what language is best for this project”.