If Jesus died for the sins of the whole world, why are only some saved?

Because not all respond to Jesus’ invitation to be saved.  “But to all who did receive Him, who believed in His name, He gave the right to become children of God.”  John 1:12