Programmers, though, like it better when they write more code. Or more precisely, when they release more code. Programmers like to make a difference. Good ones, anyway.
Salesman like it best when they can sell more. When I used to sell used cars, I loved it best when I could keep pushing cars out of the lot.
Writers like it best when they can write more. They like it best when their imagination can produce thousands of stories.
The difference is that coders usually know what they will tackle and have a strategy so it is easier for them to get to the end point. Also they are almost sure they will hit the end point of a certain problem.
With other professions you cannot predict much. Your next customer is not guaranteed, your next story just does not want to show up in your brain etc....
That being said, Yes, a lot of programmers I know work hard.