So a decline in language is causing people to avoid/dislike it or a dislike of a language is causing the decline in popularity ?
This emotional response probably transfers onto the languages themselves, which means any language in decline will naturally attract resentment.
At least that's the case for me. I can say that I dislike PHP because I used it in the past. I couldn't say the same about rust.