We have been canning for many years, and have mostly kept our canned goods at pretty much room temperature, which in our log cabin can change quite a bit.
We have canned applesauce, tomatoes, green beans, maple syrup, salsa, jams, jellies juice and preserves.;
Some of our canned goods are probably 5 years old.
And we have to the best of my recollection never had anything go bad as long as the seals were intact.
We've had some slight surface rust on some of the lids occasionally.
We've used pressure canning,
water bath, and for some things like syrup just pouring the hot liquid into hot jars and sealing.
I'm not sure how long those folks kept their canned goods in the basement that went bad, however I don't believe the basement storage was to blame unless the lids actually rusted through which would be unlikely unless the basement was dripping wet.
Possibly the jars that went bad did not seal properly.
If a jar lid ever pops up on us, we go by the old saying of "when in doubt throw it out!"