My guess would be a pressure switch for a well pump. Back in the day they would have used a shallow well pump and since there would be no need for running water other than in the kitchen, the switch was under the sink.