It's not that they can't afford it - it's that they're unwilling to actually leverage the wealth of their country to do it. I seriously don't understand the thinking that resources are still so scarce that an entire country like India somehow can't afford to meet the basic needs of its people (let alone the US). If the resources exist you figure out how to get them to the people that need them. Not doing this is how you get unrest, a massive rise in crime and eventually coups, wars, etc. Democracy and capitalism are not givens - they are very much still experiments that can and do fail.