People who are willing to live on the bare minimum of food and shelter usually can't do much about their situation. Requiring such people to find a job within a month is absurd and basically a system set up for slavery.
The role of a good society is to support those who stumble in life. It makes us all stronger. Ideally this is done voluntarily and not through taxes, but for the time being shelter and supplies is a fair enough solution.