Good responses so far.
Why is the currency devalued?
First, let’s distinguish between managed and floating exchange rates. Where the government controls the exchange rate below what would be its market value by selling its stock of official reserves of foreign currency, yes for a time, living can be cheap at least for a foreign visitor. It’s unlikely to be sustainable for all that long, since the stock of official reserves is limited and the operation of the central bank is compromised.
Under a market exchange rate, the exchange rate may be low due to some capital market panic or may seem low to foreigners due to purchasing power parity effects. Before turning to the latter - which is where I suspect the interest here really lies - let’s deal with locals.
A local who is fortunate enough to have assets denominated in foreign currency will do well from a low exchange rate. It’s not so much that living is cheap, more that they suddenly become richer. The vast majority of people whose income streams are denominated in local currency are poorer. How much poorer depends on how import-intensive their consumption bundle is. More expensive imports creep into the prices of domestically produced commodities where imports are used as intermediate goods.
Now, after all that, the answer to what I suspect is the real question: how come, when you visit some countries with market-determined exchange rates, does “everything” seem cheap (or expensive)?
This seems like a puzzle, because of what FRDE calls “commodity arbitrage” and economists call the law of one price. Because wheat sells on international markets, the price of bread should be the same everywhere* because if it weren’t you could risklessly profit from shipping wheat from one place to another.
This leads to the naive purchasing power parity idea: that because of the law of one price a US dollar should buy the same stuff everywhere and that if it doesn’t, market exchange rates are wrong and should be expected to adjust to make it so.
But market exchange rates are determined by trade, and not all goods are tradeable to the same degree. Wheat is very tradeable, haircuts aren’t - which is why economists make a point of getting haircuts in foreign countries. And, as Hellestal hints at, important things like transport, law enforcement, retail services etc, are sparsely traded. So purchasing power parity doesn’t hold, probably due to the Balassa-Samuelson effect.
So when you go to India, most things seem cheap. Bread is cheap even though the LOOP holds for wheat, there’s a lot of retail services in bread. When you go to Switzerland, most things seem expensive. And when exchange rates change rapidly, and for no obvious reason, and things seem cheap, your actions are part of the process that equilibrates exchange rates, but will not bring PPP into effect.
[sub]Don’t make me talk about real exchange rates or the Marshall-Lerner conditions.[/sub]
*[sub]abstracting from tariffs and transport costs, offer valid only in floating currency jurisdictions[/sub]