Governments have set a certain value to their currency so that a buying and selling relation is established, leading to that fiat being used and always running.
AFAIK, governments do not set the value of fiat currencies, but they generate the legal tenders which has to be accepted anywhere it is presented within the country. The economy of the nation determine the value it is traded for in relation with other currencies and this reflects on it's actual value.