Based on the pic, it looks like the elec was "there first", and that's probably how they had the power "on". Then here, the blame would be the Plumbing AHJ, and the gas utility.
Here in my areas of NJ this would not fly. Some areas are PSE&G for both gas & elec. services, and they would not allow this install, neither would the Elec. AHJ. The state has three other power co's (GPU, and Atlantic Elec, and a small area covered by Orange Rockland), and there are a few gas utilities.