"And there are enough resources out there to make all that stuff for them "
Yes, there is.
Advanced economies are mostly service based.
Countries are poor because of lack of social organization.
Many poor countries have tons of resources (Africa).
Many rich countries (UK, Japan, Germany, Singapore) etc. - have none.