Regardless of how it actually functions, the welfare state is intended as a safety net for people who have fallen on hard times, on the assumption that they will return to the workforce if/when they can. It functions on the assumption that most of its beneficiaries are at least capable of working and commits to caring for the few that aren't.
Which makes perfect sense in an economy in which all/most jobs are done by human beings. It doesn't in an economy where automation is shrinking whole industries (law, retail, warehousing, stockbroking, probably transport eventually, even service and hospitality).
Emmie:
Yes, automation requires people to create/run automatons. It requires far, far fewer to be employed than the kinds of economy our society is used to.