Here's why:
* Common nouns refer to general, non-specific things.
* Proper nouns are specific names of people, places, or things (like "The Library of Congress" or "My Local Library").
Since "library" could refer to any building that houses books, it's a common noun.