It could be that truckers that arrive on time for a pickup get a payment from the port when they experience an excessive delay. Incentive for the port to perform, harm reduction for the trucker, etc, but they don't have it in place because they can get truckers without it.
Aren't...a ton of jobs paid by the hour, or salaried?
Shouldn't we, according to this logic, only pay software engineers for lines of code written?
The reason not to do things like that is if said metrics can do more harm than good. However freight is pretty commodity by definition. Aside from not doing damage to goods and people, throughput is basically the only things that matter in that context.
Employees demanding a "standby base rate" would also be sensible if they were required to wait while lacking work to do.
Why can't what developers produce be commodified?
Regulated taxi fare formulas usually include both time and distance. A mile in a traffic jam will be based on time. Ten miles with no traffic will be based on distance. Why should truckers not get paid for sitting in a traffic jam if cabbies do? It still costs the trucker time that he can't be doing/working something/somewhere else.
Let's not pay by what you produce (number of loads), but by how much time you take, and drivers will not care about the delays, and the ILWU will not care about delays, and you will have a more efficient, egalitarian system? Yeah, right. Then you will get ILWU types driving trucks and taking their time is all you will have in the end.