The meaning of the word "Varna" is not class or status but skin color.
The meaning of the word "Varna" is not class or status but skin color. Between the outcasts and the three Aryan Varnas there is the Sudra Varna who are the simple workers of the society. The Sudras consisted of two communities. One community was of the locals who were subdued by the Aryans and the other were the descendants of Aryans with locals. In Hindu religious stories there are many wars between the good Aryans and the dark skinned demons and devils.
The different Gods also have dark skinned slaves. There are stories of demon women trying to seduce good Aryan men in deceptive ways. There were also marriages between Aryan heroes and demon women. Many believe that these incidences really occurred in which, the gods and the positive heroes were people of Aryan origin. And the demons, the devils and the dark skinned slaves were in fact the original residence of India whom the Aryans coined as monsters, devil, demons and slaves.
As in most of the societies of the world, so in India, the son inherited his father's profession. And so in India there developed families, who professed the same family profession for generation in which, the son continued his father's profession. Later on as these families became larger, they were seen as communities or as they are called in Indian languages, Jat.
Different families who professed the same profession developed social relations between them and organized as a common community, meaning Jat. Later on the Aryans who created the caste system, added to their system non-Aryans. Different Jats who professed different professions were integrated in different Varnas according to their profession.
Other foreign invaders of ancient India - Greeks, Huns, Scythains and others - who conquered parts of India and created kingdoms were integrated in the Kshatria Varna (warrior castes). But probably the Aryan policy was not to integrate original Indian communities within them and therefore many aristocratic and warrior communities that were in India before the Aryans did not get the Kshatria status.
Most of the communities that were in India before the arrival of the Aryans were integrated in the Sudra Varna or were made outcast depending on the professions of these communities. Communities who professed non-polluting jobs were integrated in Sudra Varna. And communities who professed polluting professions were made outcasts. The Brahmans are very strict about cleanliness.