Perhaps if you'd liked your work?
If you want to work the extra 40 hours for free you can do it for a charity (or your own startup!) rather than your for-profit employer.
Your extra time could be devoted to the benefit of people, projects, or causes dearer than your employer's pockets.
Programming jobs don't pay overtime?! With an extra 40 hrs/wk, regardless of the job, the employee should get a sizable compensation, right?