I have no idea, but scripture teaches both:
2 Corinthians 5
6 Therefore, being always of good courage, and knowing that while we are athome in the body we are absent from the Lord— 7 for we walk by faith, not by sight— 8 but we are of good courage and prefer rather to be absent from the body and to be at home with the Lord. 9 Therefore we also have as our ambition, whether at home or absent, to be pleasing to Him. 10 For we must all appear before the judgment seat of Christ, so that each one may receive compensation for his deeds done through the body, in accordance with what he has done, whether good or bad.
1 Thessalonians 4
14 For if we believe that Jesus died and rose from the dead, so also God will bring with Him those who have fallen asleep through Jesus. 15 For we say this to you by the word of the Lord, that we who are alive [fn]and remain until the coming of the Lord will not precede those who have fallen asleep. 16 For the Lord Himself will descend from heaven with a shout, with the voice of the archangel and with the trumpet of God, and the dead in Christ will rise first. 17 Then we who are alive, who remain, will be caught up together with them in the clouds to meet the Lord in the air, and so we will always be with the Lord. 18 Therefore, comfort one another with these words.
The dead will rise … there will be a Judgement … to be absent from the body is to be present with the Lord …
(I have no clue how all the details fit together, but “God said it, so that settles it and I believe it.”