If you were stuck at the top and confirmed there was no way to get down, what would you do?
And now you're only two choices would be: you just slowly starve to death or just go ahead and jump to end it quickly.
Starving to death is slow torture and you'll be in complete agony all the while. But jumping, while the impact of hitting the ground is scary af, would probably be the better option since death from that high is instant and you wouldn't feel a thing.