Where do you live? In a lot of municipalities any out-of-code work can remain unless they are actively touching that part of the system. For instance, if you had ungrounded outlets in your house, but were just getting a drop for a ceiling fan you wouldn't have to install grounds as part of that work. So they must have been having to touch all those components anyway.