The life expectancy figures are manipulated:
https://www.econlib.org/about-that-cuban-life-expectancy/
The first "manipulation" identified would not impact Cuba's position as 1st in life expectancy in Latin America, as they concede in their article.
It is because if you cannot take care of a kid with some kind of problem and dies young, it lowers the life expectancy. So they encourage abortion and remove it from the count.