In the past infant mortality was extremely high, with frail infants invariably ending up as dead infants. And so in the past if you looked at somebody who was 15 years old, it's very likely that he'd live to roughly the same age as somebody today. It's not like he'd just start dropping around age 40. It was more a mix of people living to 5 years old and people living to 80 years old. Take the founding fathers as a random example:
==========
John Adams - 91
Benjamin Franklin - 84
Alexander Hamilton - 49 (killed in a duel)
John Jay - 84
Thomas Jefferson - 83
James Madison - 85
George Washington - 67 (speculation he may have been killed by a common medical practice of the time - bloodletting)
==========
Interestingly enough this goes all the way back to Ancient Greek times where you may be surprised upon some brief research to see how long any Greek you know of likely lived to, in spite of having effectively zero medical knowledge and hygienic practices such as shared butt sponges (in lieu of toilet paper) at the various public toilets. The reason I more contemporary samples is because one can reasonably argue a survivorship bias in the Ancient Greeks. Would you know of Philosophartes today if he had died when he was 40? Probably, but I can't prove that. The founding fathers though were all relatively young when their names were inscribed into history.
Declining nutritional and increasing caloric value is probably one of many contributors to rising diabetes rates though.