It's possible the switch is for the electric heating element in your water heater.
I have a house type wall switch under our galley sink for running our hot water heater on 120vac, however it's not illuminated.
Then there's a small rocker switch on the outside cabinet just under the sink that's for running water heater on propane which illuminates when turned on.
Good luck finding it's purpose and safe travels....