Joshua stayed in the tent of meeting longer than Moses. Maybe that's why he got to go into the promised land and Moses didn't.
Key Verse:
When Moses turned again into the camp, his assistant Joshua the son of Nun, a young man, would not depart from the tent.
Exodus 33:11b