>>xkcd-s+(OP)
The aim of a welfare state is to redistribute wealth to a point where no-one needs to be afraid of dying of hunger, cold, or trivially treatable medical conditions and can have a primary education.
There are no pure market mechanism that would take care of these needs. I would not call a welfare state an epicycle.