I think this is a bit more nuanced. Humans rationalize ways to absolve themselves of feeling empathy for the sufferings of others. This is not an innate human behavior. (At least ive seen no anecdotal or published evidence of such.) what I have seen is people being taught to dehumanize others, usually following percieved wrongs (see hatfields v mccoys). Look at the way homeless people are treated. They need to just pull themselves up by their bootstraps, stop being mentally ill physically disabled addicts and get one of those impossible to live on jobs pushing carts at whole foods for minimum wage so we can stop being inconvenienced by their poverty and suffering on our way to our overpaid jobs or when we go shopping or out on the town. It's fascinating to juxtapose how children perceive the homeless versus how the media portrays them:
Children: why is that person so dirty? Why do they ask for money and food? Why do they hurt? Why are they talking to the air?
Media:
https://nypost.com/2018/08/18/state-senate-candidate-launche...
https://www.economist.com/britain/2018/08/18/no-end-in-sight...
(I cherry picked two articles from google news after searching "homeless")