Answer:
This had a direct relation, because highly social classes were the ones who governed, if not, they had big influence in important decisions.
Most of this happened, because influence was a synonym of money and social status, even today still like that. Then, during Empires, titles were often bought by this wealthy social classes.