What does the Human Development INdicator (HDI) measures?
Because HDI is constructed as 1/3*an index of income (GDP) + 1/3 *an index of health (life expectancy)+1/3*an index of education. The high rank of Cuba comes from the fact that even though it is a poorer country it has a higher life expectancy at birth compared to Mexico thanks to their state funded health.