This question is based on the unwarranted assumption that people go to heaven when they die, whether immediately or at some later time.
The question really should specify some denomination that believes this doctrine.
It also fails to indicate why anyone would think that Jairus's daughter would have been guaranteed anything.
From a biblical point of view, there is no support for such an assumption.
When people die, they go to the grave (Hebrew sheol, Greek hades), where they rot and return to dust.
They are totally unconscious and unaware of anything.
The Bible often refers euphemistically to this as "sleep".
All go to one place: all are from the dust, and all return to dust. — Ecclesiastes 3:20
For the living know that they shall die: but the dead know not any thing … — Ecclesiastes 9:5
For David, after he had served his own generation by the will of God, fell asleep, was buried with his fathers, and saw corruption — Acts 13:36
… the patriarch David, that he is both dead and buried, and his tomb is with us to this day. — Acts 2:29
For David did not ascend into the heavens … — Acts 2:34
No one has ascended to heaven but He who came down from heaven, that is, the Son of Man who is in heaven. — John 3:13
Therefore He says: “Awake, you who sleep, Arise from the dead, And Christ will give you light. — Ephesians 5:14
When Jesus returns, the elect, the few people that have been saved during this era, will be part of the first general resurrection.
They will be changed to immortal spirit beings, born again as siblings of Jesus, to rule and teach here on Earth during the Millennium.
Behold, I tell you a mystery: We shall not all sleep, but we shall all be changed — in a moment, in the twinkling of an eye, at the last trumpet. For the trumpet will sound, and the dead will be raised incorruptible, and we shall be changed. — 1 Corinthians 15:51
… And they lived and reigned with Christ for a thousand years.
But the rest of the dead did not live again until the thousand years were finished. … — Revelation 20:4–5
The rest of the dead, the vast majority of everyone that has ever lived, will be part of the second general resurrection.
They will be raised as physical beings at the end of the Millennium, when they will live again on Earth in the Kingdom of God and receive their chance at salvation.
When Jesus raised the dead, he simply gave them back the spirit of life, allowing them to regain consciousness and to continue their physical existence.
"Heaven" doesn't even enter into the picture.