Either the code was not adopted in the juristdiction or who ever wired it didn't have a clue what they were doing. I'm living in a house built in 93 and remodeled since then and still hasn't met any code since it was built. Both the local building officials and the "person(s)" doing the wiring failed.