Its becoming like the same grasp js has on the web...which is sad to see.
AI/ML on the other hand has no such restriction. Your new startup could build all their ML models in Java with DeepLearning4J and it would probably work fine. Python is used because it's easy to work with for experimenting, which is a big part of research and for production your can extract your weight and graph structure to run on TVM/TensorRT/ONNX. There is no equivalent vendor lock-in.
At any rate you’re right - the dominance of each language for their respective use cases (JS-Web / Py-ML) emanates from different sources.