Gap has reduced but Silicon Valley still pays 4-5 times more for the same job than Indian salaries. As a single guy you can save a lot even accounting cost of living. Probably the reason which helped OP come to India(along with Tesla stocks 10xing)
Let's take a concrete example. Google India L4 compensation is 82K USD[1]. For SV, it's 268K[2]. That's >3x right now.
And accounting for 40% taxes and 30% spending (~7K per month which gives you a super comfortable lifestyle even in SV) leaves you with 30% savings, or ~84K USD which is the entire pre-tax pre-CoL salary for the same kind of work in India. Numbers are even more skewed as you become more senior.
Now one may argue with Google being an outlier. But Google is an outlier in India as well and a lot of companies pay similar (>3X between SV vs India). SV is also not special in that Seattle or NYC will net you similar numbers.
Care to cite some hard data about your statements?
Quality of life for the same pay is different though. In India, labor is much cheaper. However, rule of law, open space etc are not as good. Working temporarily in the US to save money for India could be a good arbitrage.