I find pretty interesting that the memory is not perfect out of the fab and its defects are coded on its label, hence these defects can be loaded to the device using it as a map, so it can work around these loops while working. Now, this is even true for flash memory, but this is handled at the controller level and its dynamic during its initial "formatting" at the factory, so it's completely hidden from the host unl…
Hard disks used to come with a paper label listing their bad sectors. (They still come with a list, it's just now it is hidden in the firmware like you describe.)
I don't really know why "bad sectors are still bad after 40 years" is so surprising to me, but there you go.