Writers do measure productivity by pages written… sure, they may not write a best seller, but there’s a date they start writing and a date the book is published and the book has a word count.
I agree though that lines of code or number of pages doesn’t have much of a relationship to revenue.