@ElAleph,
In terms of modern ethics, an individual is likely to receive their morals from more immediate sources such as peers, school, media,family, religion and so forth. I am not sure how far back you are referring modernization to, but individualism has existed among society for at least hundreds of years. We have very recently become more aware and accepting of individuality when it was considered alright to be different. Religious hangups over the years have sort of hindered people from emancipation of thought and were kept in the closet.
But originally, concepts of morality evolved slowly over time through the process of natural selection. Such a behavior could harm the survival of the entire species in which segregation of traditions, music, moral perceptions and so forth were divided among groups of people. The population of each group eventually became more powerful and influential and had more control over society. This sort of division has occurred with animals as well in which instinction of survival plays a role in everything they do. People are instinctively not likely to mate with murderers, rapists or terrorists for survival instincts, for prevention of these traits to pass on genetically.
Once these groups became more powerful, they began inflicting their ideas and moral perceptions onto more subjects. If not agreed with, the concept of "god" enters to keep people in line with the promise of eternal bliss or torture based on behavior. Thus all this leading to the way we think today. Our current mode of thought generally reflects on past human experiences.