J.K. Rowling added the initial K in honor of her grandmother Kathleen.
Rowling was born Joanne Rowling, without the two-initial pen name now associated with her. Before publication, Bloomsbury asked for a name using initials because it was thought that some young male readers might be less willing to choose a book written by a woman.
Rowling chose “J” from Joanne and “K” from Kathleen, her paternal grandmother. The resulting author name became J.K. Rowling, although Kathleen was not her birth middle name.
This detail is often mixed up with the claim that the K stands for Rowling's own middle name. It does not. Rowling has also written crime fiction under the separate pseudonym Robert Galbraith, which has no connection to the K in J.K. Rowling.