Relying on the honesty or competency of your contractors go above & beyond their requirements is an inefficient and unsustainable solution in a free market. This is a clear case of Moral Hazard: In the same way that bad money drives out good, corner-cutting organizations out-compete honest ones.
In the public construction industry, every contract includes that language. It's superfluous, because no contractor that wants to keep his license violates those codes (all construction is inspected by local authorities).
Furthermore, in construction, those codes exist and are easily incorporated into contracts by reference, even non specifically ("all work will comply with local building codes and statutes"). Also, the liability for non-compliance, even if undetected by inspectors, is massive.
In the tech industry, I've seen "work will be performed to professional standards and best practices" and other such meaningless clauses, intended to give the contractee some standing for complaint if they aren't happy later, but it's hard or impossible to measure compliance to generic standards that mostly don't exist.
This is one reason why Engineers say that dorking around on computers isn't Engineering. They do have a point.
FIPS actually exist and are easily incorporated into contracts by reference.
That's because you have to have a license to perform that work. If you don't meet the code, you don't keep your license.
This is one of the reasons why McConnell et al have argued that we need professional licensure. Licensed Professional Engineers can lose their licenses if they sign off on half-assed plans.
You can, and people do, and they are cited for it when caught.
Likewise, there are mandatory standards for Federal IT systems, particularly in the area of security.
In the construction industry, a contract might not explicitly say that the building has to comply with local building, fire and electrical codes - that's taken as a given. To construct a web site that deals with sensitive information without taking security into account is like building a skyscraper with no fire exits - not something that any honest or competent builder would do.