But she owned the copyright to it, and could trade that copyright for a contract on the book. That is, she had a viable monetization mechanism if her work was good.
So once again: absent this, provide a plausible way Rowling could have made money on her first book.