The boundary between organic and inorganic compounds are somewhat...arbitrary. Historically, a compound that can be produced only by a life-form is considered organic, and technically all things organic contain carbon. However, all compounds carbon are not neccesarily organic, in the same way all lizards are reptiles but not vice versa.
Did some more research:
The name organic goes back to the 19th century when it was belived that they could only be synthesised by an organism. This was disproved when Friedrich Wohler syntheized urea, traditionally considered organic. Our concept of inorganic goes to the compounds that were considered thus from before Wohler.