means that
even close friends must sometimes separate because circumstances, distance or the course of life take them in different directions.
also
Even the best of friends must part.
For example, sooner or later, one way or another, people are taking their own ways; friends cannot always be together. This is a situation where “The best of friends must part” applies.