This has been happening since the invention of fire. People will cut corners and use cheaper flammable material where they shouldn’t (e.g. Grenfell 2017) or some stupid with a flare gun will set it off inside (e.g. Montreux 1971).
Fire codes and building standards improve with time, but human stupidity is forever.