Why was the star spangled banner wrote?

To honor our country. (United States)