Without wanting to interfere too much in this discussion.
The social fabric of the not so individualistic, the very collective culture, and long unbroken tradition of catholic and later Lutherian compassion for the people living near you, the care for the group, was in Germany still strong. The labor laws of Bismarck to get the wind out the sails of the political socialistic movement was also based on this traditional community thinking.
The socialistic ideology has no monopoly on caring for others in your community and scaled up as effect in your nations society. The historic fact that the socialist party and unions did grow fast, was because the speed of the industrialisation, and the subsequent weakness of laborers, especially where machinery needed less skilled labor, caused abuse of this power by a small group of people. The cultural and ethical response, reflected in new laws and rules comes always slow.
Not unsimilar as our current slow response to Automation/Robotics (jobs and warbots), Genetic engineering in human DNA, the fluidised capital in globalisation, the Climate change, etc.
Government are, and to some degree must be slow in their reactions. Some collateral damage always there in the transition.
=> the social security of many European countries is only partially caused by the politically based socialistic parties. It was there already in the culture and traditions.