The story
Century, Wright's English Dialect Dictionary and the 1933 OED take it to be from whew (“(to make) a shrill whistling sound like the cry of a plover”) + -er, and early cites also call the bird the "whistling widgeon".
Etymology from Wiktionary, CC BY-SA 4.0.