The bombs were directed at us, not shot by us. Francis Scott Key wrote the poem from his sloop moored next to a British man of war as Baltimore was bombed by the British in the war of 1812.
Australia's national anthem makes no mention of war, neither does Switzerland's. Norway makes references to fighting but says they're "armed to guard her peace," much like Canada's national anthem where "we stand on guard for thee"