what about children with problems who wont contribute to society
Then it is up to someone to take on their upbringing themselves. Parent, well-wisher, charitable trust or organisation, grandparents...none of these are governement supported with taxes.
If the little cats and dogs find people who will similarly support them or organisations privately run or run off charity, all good.