I was looking to add an outlet near my light switch in the garage. When I opened the box for the switch I noticed that the neutral is wired to the ground. In the picture of the switch, the top wire screwed to the switch is the only hot wire in the box. Its hard to see but it comes from bottom right corner and the neutral from that same wire is wired to the ground. The wire at the top was stabbed all the way in to the back of the switch and i pulled out to test it which is why it is out. The second picture is the garage light. Two sets of wires coming in to the box. Have never seen anything like this. Did some reading on this site and couldn't find the same scenario. Any help on explaining why this is set up this way is appreciated.
Is the supply a 3 wire black, white , bare copper if it is the neutral connected to the ground at this point is a code violation. The only place the 2 are tied together is in the main panel. I would remove the neutral as this is not safe.