In some cases like the word vice, the negative connotation stems from a direct definition of the word(vice means wicked, but another definition is 'a substitute for' so 'vice president'). In other cases, word may be used in a culture to identify a group or individual that is portrayed negatively, thus modifying the inherent definition of the word to better portray how society thinks of the word.
Answer:
protagonist is like the hero in the story and the antagonist goes against the protagonist.
Example:
dora is the protagonist and swiper is the antagonist