1. Individual temperament: some are inherently more inclined to negativity and pessimism than positivity and optimism.
2. Perception: some feel they are much more superior than others, which gives them an exaggerated opinion of themselves, which in turn is taken as a licence to criticize others.
3. Perception 2: some feel inferior / denied / isolated for any number of reasons which makes them resentful and negative.
4. Traits: some are more greedy and / or jealous than others. They feel perennially deprived, jealous and again resentful.
5. The stresses of modern lifestyle are very often unsustainable and unhealthy, driving individuals to anger, frustration and hatred.
And the online world often turns out to be a dumpster for all that negativity.