Some trains and buses in remote areas only take cash. Some only take EXACT fare and the driver does not have change and will refuse you. I asked my hotel for exact fare by exchanging my foreign 10$ USD bill. The staff informed me it was illegal for them to exchange money. Lo and behold I looked it up and it is indeed illegal as you need a foreign exchange license.