The process of a word gaining a negative meaning is called pejoration. This typically happens when a word's original neutral or positive connotation shifts over time due to cultural, social, or linguistic changes. The evolution of language and usage patterns can contribute to this shift in a word's meaning.