To show love and respect for our country.
On the night of September 13, 1814, Francis Scott Key, an American lawyer and amateur poet, accompanied American Prisoner Exchange Agent Colonel John Stuart Skinner to negotiate a prisoner release with several officers of the British Navy. During the negotiations, Key and Skinner learned of the British intention to attack the city of Baltimore, as well as strength and positions of British forces. They were held captive for the duration of the battle and witnessed the bombardment of Baltimore's Fort McHenry. Inspired by the American victory and the sight of the American flag flying high in the morning, Key wrote a poem titled "The Defence of Fort McHenry."
Upon his return to Baltimore, Key gave the poem to his brother-in-law, who noted that the words fit melody to the popular drinking song, "The Anacreontic Song." Key's brother-in-law took the poem to a printer, who made broadside copies of it. A few days later, the Baltimore Patriot and The American printed the poem with the note "Tune: Anacreon in Heaven." Later, the Carr Music Store in Baltimore published the words and music together as "The Star-Spangled Banner."
The song gained popularity over the course of the nineteenth century and was often played at public events like parades and Independence Day celebrations (and, on occasion, sporting events). In 1889, the Secretary of the Navy ordered it the official tune to be played during the raising of the flag. In 1916, President Woodrow Wilson ordered that it be played at all military ceremonies and other appropriate occasions, making it something of an unofficial national anthem.
After America's entrance into World War I, Major League Baseball games often featured patriotic rituals, such as players marching in formation during pregame military drills and bands playing patriotic songs. During the seventh-inning stretch of game one of the 1918 World Series, the band erupted into "The Star-Spangled Banner." The Cubs and Red Sox players faced the centerfield flag pole and stood at attention. The crowd, already on their feet, began to sing along and applauded at the end of the song.