About Countries by Median Age
The median age is the age that splits a country's population in two, with half younger and half older. It is not the average, and it is not the same as how long people live. A low median is mostly a sign of high birth rates, not of short lives.
The youngest countries are in sub-Saharan Africa, where large families mean that half the population is still in its teens or younger. The oldest include Japan, Italy, South Korea and Germany, where birth rates have been low for decades. Some countries are unusual. The Gulf states have relatively high median ages for their low birth rates, because so many working-age migrants live there.
For guessing, think about fertility and migration. High-fertility countries are young, while wealthy countries with low birth rates are old. The caveat is that these numbers are estimates and projections that are revised over time, though they change slowly, so the rankings are fairly steady and close pairs are mostly a matter of rounding.