There is no specific reason, it's just how history turned out. There's nothing in Python that makes it any good for machine learning. All the heavy lifting is usually done by calling non-Python code anyway. Any other language would have done it, but Python was the most trendy at the time.