To overcome the limitations of KNN using the Euclidean distance. It is not a limitation of metric learning. In fact, metric learning is used to improve the performance of KNN using a distance learned from data instead of the common Euclidean distance.