This seems circular, like saying you shouldn't get paid for working on a project at home because you agreed to be responsible for completing the project at home. In both cases it is a task that requires time and effort, which you are doing for the company's benefit, not your own.
Ultimately these factors are included in the employee's mind when they seek and negotiate for jobs. All things being equal, you take the job with shorter commute and same pay because the commute is part of the job in your mental calculation. You can also negotiate for more pay to offset a long commute.