In general, it's a tired decades-old anti-labor talking point.
However there are many cases where it's hard to fire underperfoming unionized employees. And there's always the possibility of the union playing a kind of long game with management where they are willing to trade away the possibility of rewarding standout individuals in order to preserve the baseline.