To be fair, if the law itself is what is important you can see the logic in doing this. It is a way of thinking that is not my own but it has a certain internal consistency.
https://en.wikipedia.org/wiki/Activities_prohibited_on_Shabb...
"Many poskim ground their prohibition of operating electrical appliances in this melakha."