As is the case with every ticket bought to The Wizarding World of Harry Potter theme parks, every copy of Hogwarts Legacy sold is likely to send a percentage of the money made to Rowling. If she doesn't receive royalties from each sale, that would be because the rights to the royalties were paid up front.