Secondly, you can work towards a situation where you don't have that commute, or it's cheap / clean / easy / you don't lose all the time. Spoiler: live on a trainline or buy a bicycle.
Third, I don't believe this is the main reason for commuting. I think it's because people want to live in one place and work in another, which is usually a bad idea - especially for the environment. It irks me when I choose to live reasonably close to work so I don't need to burn fossil fuels to get there, and then people driving their cars to and from some village complain about their commute whilst I have to suffer the air pollution from their vehicles.
I totally get that for some transitional periods a long commute may be required, but I don't know a single person who couldn't make their commute a 20min walk or by public transport if they moved or switched jobs.