Knickers are named after a man who never existed. Diedrich Knickerbocker was the invented narrator of a comic history, and his name ended up on underwear.
In 1809 Washington Irving published A History of New York, a satire narrated by Knickerbocker. Irving pictured him as an old-fashioned Dutch New Yorker, a chatty and officious local historian. He borrowed the surname from his friend Herman Knickerbocker, who lived from 1779 to 1855. Etymonline reads the name literally as "toy marble-baker," from knicker, a word for a marble.
The name soon took on a life of its own. By 1831 a Knickerbocker meant a descendant of New York's Dutch settlers. It became a byword for an old Dutch-descended New York aristocracy, much like "Boston Brahmin." Wikipedia notes that this heritage was largely Irving's invention.
The clothing came through the pictures. When an 1836 British edition of the History appeared, George Cruikshank illustrated it, and he drew the old Dutch New Yorkers in loose knee breeches. Wordorigins finds such breeches called knickerbockers in a London newspaper of September 1858, supposedly after those illustrations. By 1866 the word had been clipped to knickers, meaning loose-fitting men's trousers buckled or buttoned at the waist and knees. American cyclists invariably called them knickers.
In Britain the word took a different turn. Short, loose undergarments for women, a shortened version of pantalettes or pantaloons, also came to be called knickers. Wordorigins finds "Plain and Twill Flannel Knickers" in a Manchester Guardian advertisement of 1876. That is now the main British sense. Dictionary.com notes that in the UK the word can sound old-fashioned or childish, the kind of thing grandmothers and little girls wear.
Knickers has company. Pants is short for pantaloons, which takes its name from Pantaloon, a silly old man in Italian comedy who wore tight trousers. So two of the commonest English words for legwear are named after fictional characters, one from the Italian stage and one from a New York satire.