There are those that spend off-time programming, just not for their employer's tasks.
The quid-pro-quo of employee-employer loyalty is largely gone these days, so it's not unreasonable to only work the hours you're compensated for.
I'm using the term loyalty for lack of a better term. There was a time when employees would often go above and beyond for their employers, because the reverse was also often true. Roughly, the shift away from the "lifetime employment" model.
Things like:
- Somewhere in the 1980's, when layoffs started to happen even in relatively financially healthy companies
- The move from pensions to 401k's
- The shift of a higher percentage of healthcare costs to the employee's portion
- More focus on hiring outsiders into higher level positions, versus training/placing internal candidates
Specifically, I might be incented to occasionally "work for free" if I thought the company would, for example, not lay me off during a particularly rough financial period.
I think that people who work on their employer's projects during their own time are unimaginative - they could be writing their own software for their own benefit but they instead choose to make their employer rich and not see any of that compensation themselves.
This is of course assuming you're drawing a salary from the company and you're not mostly paid in equity, in which case putting in free hours might make more sense if you can make the product profitable.
Its also a shane that the former is what most people find themselves in. A means to an end in a world that isnt very kind to everyone.