That's correct. I don't appreciate your willingness to invalidate what I and others are pointing out to you.
Building codes are state and municipal level laws. There is no harmonization. There are varying degrees of compliance based on competency, actual corruption conspiracies, and budget all of which changes decade over decade, building by building.
Many other regulations and individual behaviors have helped keep people safe. The way electronics work, the way people are educated, the public service announcements, the response times, and sometimes the building materials. Some things have actually become more flammable over the years.
Regarding building codes, 98 people just died in a literal building collapse in the Miami area. Your standard, if I understand correctly, is "that was just 1, where are the city wide Chicago fires", when the counterpoint is that this collapse prompted reviews of many properties and many more structural issues have been found in just that one municipality that threaten hundreds and thousands of people.
You shouldn't trust this process. You should root for the process to work decently since the probability of a disaster is low - this is the only area we agree! the incidents aren't happening! - but you should know that this is all luck. Continual luck in a system that barely works.