Because cast iron lasts many lifetimes. Your typical non-stick skillet, even the expensive ones, will need replacing in a year or two if used heavily. Manufacturers need you to keep re-buying your cookware.
You’re right. I’ll bet that more than a few cast-iron pans have been pulled out of the trash and used for another 30 years.