I've definitely noticed ChatGPT generally writes better Python than it writes Scala, presumably for the same reason of there being a fair bit more Python code in the wild.
The actual reason probably has to do with the fact that LLM developers and academics are more familiar with Python than other programming languages, and therefore have policed it's correctness better.