Yes, because those other languages are made by other companies with equally vested lock-in aspirations.
You are right, Apple has no interest in supporting Javascript, what good would it do them except more work and hassle?
It would help many programmers though, to make their code more portable and available on more platforms. It would not be that easy to do, but also not that difficult. Rust is supporting WASM, Scala is supporting Javascript. Kotlin as well. Apple can't do it? Come on.
Just stating the obvious: The interests of Apple and programmers are aligned in some aspects, and opposed in others.