This is mostly false, actually. They exist as model codes to be a part of building codes in a lot of cases. They serve no other purposes.
Nobody is sitting around making building codes as a hobby that are accidentally getting incorporated into law.
Additionally, in the case such a thing did happen, the authors would have have recourse - not against the public, but against the government, for a taking.
This is true
thought by the lobbyist of "this will drive more sales for us".
This is not. The money just isn't all that much, the industries want standards incorporated into laws to that organizations have one well-tested set of rules to follow across the country, rather than having to follow dozens/hundreds/thousands of variations across various jurisdictions.
How do we know that they did not ask?
This is actually a tough case. Someone, or some organisation, spent a lot of time and money making a standard and protected it by copyright. They did not ask to be part of a law - that was something the people who made the law decided - and really, the people who made the law should have licensed the standards.