I think it's all about creativity. When you burn out, your creativity dries up. Most of programming (and generally thinking) is done by your subconscious, and when it says 'I've had enough of this, I'm not helping any more', you are SOL, no amount of willpower will help with that. That's why digging ditches is different.
You can't whip a tired programmer until they write working code. You'll only get broken code.
A good analogy might be to the division between rank-and-file soldiers in the military, and military officers. You don't need to think to shoot a gun. You do need to think to decide where to send people to shoot their guns.