I think LLMs are just better at Python and JS than other languages, probably because that's what they're more extensively trained on.
LLMs are better at languages that are forgiving, like those two, because if something is not exactly right the interpreter will often be able to just continue on
Depends on what one defines as a criteria for "better". Getting something to run and work, or actually writing good, readable, mostly self-explanatory, maintainable, easily testable, parallelizable, code.