Again, the kingdom of heaven is like unto treasure hid in a field; the which when a man hath found, he hideth, and for joy thereof goeth and selleth all that he hath, and buyeth that field. Matt 13:44
Notice the purchase of the whole field for the purpose of gaining the treasure.
For God so loved the world that He gave His only begotten Son, that whosoever believes in him should not perish, but have everlasting life. John 3:16
Jesus died for the whole world so that he could gain those who believe on Him.