In the Middle Ages, there was a definite structure in society.
You were born into a class of people and generally stayed in that class for your entire life.
Working hard did not change your status.
Your clothing, food, marriage, homes, etc., were determined for you.
After the rank of king, the hierarchy was the nobles, the knights, the clergy (religious people), the tradesmen and the peasants.