It found a solution. Not an optimal solution.
There are good heuristic, specially if the distances are not chosen at random but are the distance between points in the plane. So it's posible in some cases to find quite good solutions.
The problem is NP-complete only is you ask for the best solution.