Its a limited particular people whom Christ was sent to give eternal life to, His Sheep that were given Him. Jn 17:2
2 As thou hast given him power over all flesh, that he should give eternal life to as many as thou hast given him.
3 And this is life eternal, that they[those given Him] might know thee the only true God, and Jesus Christ, whom thou hast sent.
Jn 10:26-29
26 But ye believe not, because ye are not of my sheep, as I said unto you.
27 My sheep hear my voice, and I know them, and they follow me:
28 And I give unto them eternal life; and they shall never perish, neither shall any man pluck them out of my hand.
29 My Father, which gave them me, is greater than all; and no man is able to pluck them out of my Father's hand.
You ignored the meaning of world seen below
John 12:47–48 (ESV) — 47 If anyone hears my words and does not keep them, I do not judge him;
for I did not come to judge the world but to save the world. 48 The one who rejects me and does not receive my words has a judge; the word that I have spoken will judge him on the last day.
John 3:17–18 (ESV) — 17 For God did not send his Son into the world to condemn the world, but in order that the world might be saved through him. 18 Whoever believes in him is not condemned, but whoever does not believe is condemned already, because he has not believed in the name of the only Son of God.
The world is contrary to God and those that are his
The world knew not Christ (John 1:10).
The world hates Christ (John 7:7).
The world’s works are evil (John 7:7).
Unsaved Jews were of this world (John 8:23).
Satan is the prince of this world (John 12:31, 14:30, 16:11).
Christ’s own are distinguished from the world (John 13:1, 14:19, 22).
The world cannot receive the Holy Spirit (John 14:17).
The world hates the disciples (John 15:18, 17:14).
The disciples were not of the world (John 15:19, 17:16). The world brings tribulation (John 16:33).
The disciples were out of the World (John 17:6).
Christ prayed not for the world when he prayed for his own (John 17:9).
Christ is not of the world (John 17:16).
The world did not know God John (John 17:25)