The transformers you have seen were not "service transformers." They were "distribution transformers," and are allowed per 555.5. To confirm that they are allowed, you may need to read the definition of "electrical datum plane," in 555.2, specifically item (3).