I saw the pucture and electricians can do some funky stuff with wires
But I think here is the answer to the question
The power had come into the light
They then took a 12/2 and ran power to the switch
Black was hot and the switch leg white was to the top of the switch
I think he was just wanting to replace the switch
maddiedou