They went out from us, but they didn't belong to us; for if they had belonged to us, they would have continued with us. But they left, that they might be revealed that none of them belong to us.

 The world in this passage does not mean the world in general, for God loved the world which he had made; it means the world which, in fact, had forsaken the God who made it. 