Because people have emotions, and they can feel. If they're hurt, their minds are filled with dark thoughts. If they're sad, they become stuck into the loneliness of their minds, and when they're lonely, they tend to hate.
A clouded mind is caused by low EQ. Always calm yourself down before you do something or say anything.