I can tell you're in India. Just a few thoughts from a fellow Indian:
- You are dramatically underestimating the cost of food and energy in Europe and America.
- Countries with free functional education and healthcare have a much higher effective tax rate than India.
- With the exception of Mumbai, a senior software engineer should be able to afford a house in any Indian city. If that is not the case, it's very likely that you are getting short-changed. And keep in mind the median sales price of houses in the US from April to June was 440k USD. That's more than 3.5 crores.
- The pay difference between India and the West for software engineers has shrunk dramatically over the past few years. If you've been at the same company for a long time, maybe it's time to switch.
- Top up health insurance is cheap. There really is no reason why an illness should financially ruin you.