Government work tends to also have structured pay scales that rise based on time worked and less so or not at all on performance. If the end result of working your tail off or doing the bare minimum is the same x% cost of living “raise”, no rational employee would put in any effort.
It tends to be the reason so many Americans are anti-union. They do a lot of good for the average worker but they also carry along a lot of dead weight that can’t easily be shed.
"Scientific management" was largely developed to control soldiering, which is when workers move in lockstep at the rate of the slowest worker. Unions restore soldiering somewhat, or at least make it possible to negotiate the rate of output and the pay rate.
In the same way we have the concept of 10x, 1x and negative-x devs, other trades have faster and slower tradespeople. Anti-union American laborers usually believe that they can outrun their fellow workers while making the additional money that implies. Unions say that they're beggaring their neighbor and the end result is they will be paid the same for more work.
Most unions focus on things like seniority, which is a bit of a detriment to everything but is very reinforcing to the union. The most senior people have a lot to protect, and by the time the junior people achieve some seniority, they have invested a lot of time in the system. A union oriented around productivity or skills would have less strength as its members aged, and it would be easier to poach the high performers into a non-union position.