The answer to this question is agenda-setting role.
Media often choose to present their stories in a certain point of view that make a person or a certain group to be seen as 'good' or 'bad' by the mass.
In recent months, we can blatantly see this being done by popular news media on both side, which often caused conflict due to their biased reporting.