The answer is: political socialization
During political socialization, people would start to internalize the ideal political and economic condition should be arranged in the society and based their political decision on that internalization.
Later on, political socialization would determine the type of policies which that person will support along with the political parties which that person feel most affiliated with.