You are failing to analyze the system corectly.
"Have enough" is a static steady state. "Produce enough" now and in the future is a dynamic constraint.
The mechanism is economic surplus, to have the producers (productive people who produce needed goods and inputs to such) create more than they need. This generally requires increasing and maintaining productivity to have surplus.
Once you have a surplus the absolute maximum priority is to maintain it. Plant, machinery, systems, irrigation, fertilizer production etc etc.
The system is dynamic, surplus today is not surplus tommorow.
In my country we have a means to ditribute this excess, and it may even go to those in need, but the cost of distributing it has been increasing at a far higher rate than the rate of increasing surplus.
what i fail to understand is why people come to a technologist forum without a basic understanding of system dynamics. this is entry level material for engineering, mathematics and physics. are they not teaching it in CS?
> the cost of distributing it has been increasing at a far higher rate than the rate of increasing surplus.
Is it? Or is it that an increasing proportion of total income ends up going to the people who find ways of hiding it such that it does not get distributed.
> why people come to a technologist forum without a basic understanding of system dynamics.
Cognitive dissonance, they understand but refuse to admit it because it conflicts with their world view.
We are producing enough excess that we can spare enough of those things to those who are unable to take care of themselves, and we have for a number of years.