Here's why:
* Proper nouns are specific names of people, places, or things. They are always capitalized.
* Common nouns are general names of people, places, or things. They are not capitalized unless they are at the beginning of a sentence.
The "War of 1812" is a specific historical event, making it a proper noun.