Upvote:3
https://abn.churchofjesuschrist.org/study/manual/gospel-topics/baptisms-for-the-dead?lang=eng
Jesus Christ taught that baptism is essential to the salvation of all who have lived on earth (see John 3:5). Many people, however, have died without being baptized. Others were baptized without proper authority. Because God is merciful, He has prepared a way for all people to receive the blessings of baptism. By performing proxy baptisms in behalf of those who have died, Church members offer these blessings to deceased ancestors. Individuals can then choose to accept or reject what has been done in their behalf.
In other, simple words, no baptism = no salvation. No authority = no baptism. Great Apostasy = no authority.
The premise is wrong, these billions you are talking about are still, in great part, waiting for a proper baptism being performed for them in order to be saved. At least for the meaning of "be saved" that is inheriting the kingdom of God.