Speaking specifically about food insecurity and homelessness in the US, it's not simply greed, it's "just deserts" ideology. It's a belief in the lack of merit of the poor to receive help.
Speaking globally, there are many more barriers to feeding everybody than just abundance, like the other guy said.