Well, that's only a recent development (compared to the life span of these historical buildings).
A lot of these Cathedrals managed to survive long period of neglect with minimal to no maintenance.
There is a bit of survivor bias in there, but it's also a testament to the durability of these buildings.