He lived in India. In the early 1900s. The average lifespan in India in 1920 when he died was 21 to 25 years old. He was 32 when he died, so better than the average. The math checks out.
Very low historical life expectancies are driven by childhood illness and maternal mortality. If you made it to 15 your life expectancy might be somewhere in your late 50s.
There isn’t data for life expectancy at 15 before 1950 for India here (when it was 60) but you can see the it for Sweden back to 1751.
Well, these numbers are averages between people living until old age (65+ years) and high infant mortality. I don't think most people keeled over when they reach 25 years...