Here's why:
* It names a style of music: Ragtime is a specific type of music characterized by syncopated rhythms.
* It can be used as the subject of a sentence: "Ragtime is my favorite genre."
While "ragtime" can also be used as an adjective to describe something related to ragtime music, it is primarily considered a noun.