A person of badmoralcharacter, or one commercially unsound. Also a commercial project or stock of worthless value. The allusion is to auctioneering slang, meaning a lot which no one will bid for. So an inefficient soldier is called one of the Queen’s bad bargains.