Not all jobs are measured by time spent on the clock, so no it doesn't have to be that way. Many jobs can and should be measured by simply meeting productivity requirements. A parking attendants job is being present on shift because that is a requirement of that job. But a programmer's job is to create software that performs a certain way. There is no time requirement of the product there.
Just cause you suffered your way through it doesn't mean you should encourage others to do the same.
Counter argument: https://en.m.wikipedia.org/wiki/Peter_principle