I think that has more to do with the fact that JS is the most popular language in the world, especially available code to train LLMs on.
Backend code is far less likely to be available because it's more likely to be closed source and is spread over many languages (Java, Python, C#, JS, Ruby, Go, PHP...).