A bee’s “corbiculae”, or pollen-baskets, are located on its tibiae (midsegments of its legs – knees). The phrase “the bee’s knees,” meaning “the height of excellence,” became popular in the U.S. in the 1920s (the “Flapper” era), along with “the cat’s whiskers” (possibly from the use of these in radio crystal sets), “the cat’s pajamas” (pyjamas were still new enough to be daring), and similar phrases which made less sense and didn’t endure: “the eel’s ankle,” “the elephant’s instep,” “the snake’s hip.” Stories in circulation about the origin of “The Bee’s Knees” phrase include: “b’s and e’s,” short for “be-alls and end-alls;” and a variation/revision of the term “business.”

Source: [Mark Israel, ‘Phrase Origins: “the bee’s knees”‘, The alt.usage.english FAQ file,(line 4407), (29 Sept 1997)]

Anyway…

“The Bee’s Knees”
A term indicating excellence – the highest quality because bees carry pollen back to the hive in sacs on their legs. The allusion is to the concentrated goodness to be found around the bee’s knee.