Fixed Exchange Rates

Why is there a fixed currency exchange rate for some countries? I mean like whats the main reason behind that and how does that affect the economy of the country?