True, the capitalistic health care system in India is good for software engineers, who probably fall into the class who can afford it, but it's far from available to every citizen.
Also, the high-tech healthcare that we are accustomed to in the US is generally only available to the upper classes in India or people who pay with foreign (>local) purchasing power. Some of the hospitals that provide high-tech care do some symbolic pro-bono care for the poor, financed in part by donations from Indians abroad and foreign medical tourists. (Source: my parents have donated to such hospitals, and I have some acquaintances who have gone to India to have cheaper-than-US specialty medical procedures performed).