Lifesaving smoke-alarm standards slow to take hold

Why does code enforcement vary so widely?