You're making a fetishizing an era of capitalism. There are chapters in Marx's Capital where he thoroughly studies early capitalism in England by official govt reports and it was absolutely horrible. The govt was forced to implement social welfare programs in order to preserve some social wellness, like obligatory school for the youth because of overwork, which were immediately curbed by the capitalists. This is the development of all of society.
With capitalists controlling a countries production, society does not get better with the interests of the majority in mind. It fits capitals interests. That was true in 1870s as well as 2022.