If you import a key (with one UID in the test case) from a file and then reimport it from WKD, the origin for the key changes but not for the UID.
In the output of gpg -k --with-colons, the "pub" line changes according to the new origin, but not the "uid" line. Instead of in the uid line, where it makes the most sense, the URL is recorded in the "pub" line in this case.
As a result of this, Kleopatra does not query WKD for such a key unless the new option ~"Query WKDs for all UIDs" is enabled in the settings.