That's a symptom though; if you don't want homeless people looking for shelter, you should solve the homeless crisis instead of making public transit expensive.
I mean there's a lot of people who would gain a lot of opportunities if they could afford to commute, so free public transit would also reduce the homeless and poverty situation.
What really makes me angry is that it's not a dichotomy; the US is the richest country in the world, they can give free health care, housing and education to everyone. But they refuse, instead (nationally) pumping it into the military while (privately) funneling it upwards to the extremely rich.
That money could be redistributed to raise the minimum wage (and if you get paid minimum wage, your employer is effectively saying "I'd pay you less if I could") and improve the lives of everyone.
But the people in power (and their voters) don't want that, because that means considering those worse off as them as equals. It boils down not to economics, but egoism, classism and racism. It's the "as long as I got mine" attitude.