The same suffix -ин- is also used with some inanimate nouns: град “hail” — градина “single piece of hail”, картофель “potato” — картофелина “single potato”. Though, it remains in plural: градины, картофелины.
So татарин is something like “single piece of Tatar”.