With very few exceptions, meteorites come from asteroids; sometimes we even know which ones. They formed from the same material that was present at the birth of the solar system - but didn't "clump" together to form the planets.
The most common form of classifying meteorites is by how and where specifically they were formed. The numbers in the classes indicate how much melting/vulcanism the material has undergone - from 3 (none, with large chondrules) to 6 (melted, with chondrules absent).