When time permits, I transcribe cemetery records from the 18th and 19th century for genealogy purposes. I’ve been doing that for years. Many cemeteries kept good records, when the records survived, and listed family members and causes of death.
I’m always struck by the number of people who died from consumption (tuberculosis) - often several members of a family within months of each. You could almost make that the default cause of death when inputting the data, and change it when you encountered something else. A lot less typing that way.
Smallpox, particularly in the 18th century, seemed to sweep through families in various pockets at some points in time. In my own family tree, several members of the same family died within a month of each other - grandparents, child, and grandchild, all dead from smallpox in January and February 1779.
In the 19th century into the very early 20th century, you still see a good amount of tuberculosis, but also lots of cholera and typhoid. There were pockets of scarlet fever (strep infection). There is the occasional cancer, but it’s rarely the cause of death because people died of acute diseases before cancer had a chance to set in - diseases that are largely treatable today or have been averted by sanitation and water treatment.
I expected to see more accidents, but it was not as big a contributor to death as the diseases mentioned above (again, just anecdotal, based on a transcribing several thousand old records from cemeteries). You get the occasional “kicked in the head by a horse” or accidents involving horse-drawn wagons or ox carts, but they are fairly rare - rarer than I expected.
I always get a kick out of those unexplained and vague causes of death. They seem curious today, like when a 60 year old person’s cause of death is listed as “old age” and nothing else.
As you move into the late 19th century, you get more detailed information. Instead of “old age”, you see more “apoplexy” (stroke) and various coronary-related causes, such as “hardening of the arteries” or more specific diagnoses of heart defects.
There were occasional diagnoses of cancer in death records, mostly in people over 50 or 60. When I saw things like “intestinal obstruction”, I assumed it was probably cancer-related. Again, it was mostly in the post-50 and post-60 crowd, because that’s when most problems kick in.
Since cancer is most often a disease of age, many people died from common diseases that were not treatable at the time, and they died long before you would see them reach an age where cancer would become a widespread problem.