Surely UK law doesn't carve out a special provision for Great Ormond Street to receive royalties for Peter Pan? Oh hang on, yes it apparently does: https://www.legislation.gov.uk/ukpga/1988/48/schedule/6
I point this out because these days the term patent almost always implies an invention. It's an interesting counterexample.
God didn't write it - it was written by a committee of 47 scholars overseen by the Archbishop of Canterbury at the behest of King James the first, so the Church of England/UK State should get royalties. Although presumably most of the plot was copied from previous authors.