That's not how productivity works. It's not a zero-sum game.
If all construction workers can build houses 5% more efficiently, that's not the same as nothing changing. Depending on supply and demand, it means 5% more houses are built, or houses are 5% cheaper, or maybe 5% bigger, or some combination. Whether or not the construction workers all get a raise or 5% get fired (or both) depends on that supply and demand, but historically they often get a piece of the growing economic pie.