Probably derived from the term the bee's knees which led eventually to the "dog's bollocks" which became the "mutt's nuts".