Because it happens to be a convenient frequency that water absorbs readily, which is the easiest way of heating up what we'd want to heat with a microwave (read: food).
https://en.wikipedia.org/wiki/Electromagnetic_absorption_by_...
And once we'd polluted the frequency for any stable commercial use, why not use this weird carve-out for a little thing called WiFi?
Rabbit hole: Apparently the precise mechanics of EM heating of molecules are surprisingly complex, and offer a number of frequency options. But this would have been the 1950s(?), so I'd assume they empirically determined a balance of functionality + technical feasibility for water, called it a lunch, and went to have five martinis in a practical fashion.