The sort of love (愛/ài) Confucius refers to in the Analects is driven by duty rather than emotion. When he advises in Chapter V of Book 1 that a ruler should “love all your people”, he is essentially saying that the ruler has a responsibility to make sure that his subjects do not lack the basic necessities of life: nothing more and nothing less.
In the same vein, when he declares in Chapter VI that a young man should “love everyone”, Confucius is simply saying that he should show the common people respect as a collective whole. He is certainly not suggesting that he should in any way get close to them. Indeed, when it comes to actually choosing individual friends, Indeed, when it comes to actually choosing individual friends, Confucius goes on to say that a young man should be highly discriminating and only associate with “those who are good.”
The use of the term love (愛/ài) in a romantic sense is a much more recent development. In Confucius’s time it was never used in such a context.