Many Americans seem to prefer to keep working well past retirement age, but it’s not clear whether the choice is motivated by the need to keep earning money or the desire to continue being productive.