It's called the "I never bothered to learn the actual fare from a local friend" tax. I don't agree with it, but it's pretty trivial to get around. It's definitely not exclusive to Indians.
“taking advantage of foreigners is ok because they have the money” is not something most people believe. There is a large population that lives below the poverty line and will overcharge anyone who can and will take it.
Yes, we have a big cleanliness problem, but that's an extension of our poverty problem. We have a lot of people who's concern is providing for the family instead of fulfillment. It's not hard to see why that's not a priority for them.
We are stuck here because British colonization, theft, and messy departure left us poorer, with broken politics, and a corrupt bureaucracy. Still, that's an obstacle, not an excuse. We're improving. I see no country without problems.
We have quite a few pristine and beautiful places where the locals care about their surroundings. Did you visit anywhere beyond the city you had business in?