Good point.
The local AHJs enforce local codes (which are not always in accordance with the national codes (which, in themselves, have no force of law).
Not to start an argument, but we have to remember (not being local code enforcers) that the local AHJ code requiremements are, usually, pretty crazy.
They are not (usually) up to date, are more a political document that a technical one and are ‘enforced’ by guys who only spend about 10 - 15 minutes on site. (Not to slam them, they are only allowed that time, being overworked as they are).
This is what home inspectors usually run into. Being in the middle of the local guys, the national codes and the local contractors and realtors. We are confused, but we have to try to explain this messed up system to the client.
What a job.