I just came back from a work trip to NJ. We went to nine supermarkets and in each one I saw this same installation.
This controlled water flow to a sprinkler on the roof that would be activated by temperature to aid the cooling of the refrigeration condensers.
I did not have my camera with me when I saw the worst one with 24" of free air THHN.
Besides the obvious lack of protection for the conductors apparently the person installing these did not know plain gray 4" sq. switch covers are available, all the ones I saw where these oil burner covers.
Anyone think the plumber did the wiring?