Machine learning, especially those with a deep neural network architecture can gain a lot of performance improvement from a good GPU. The reason is like what @Mira Yurizaki just said, GPU is designed to perform better than CPU when it comes to many large matrix operations.