Which city are you talking about because this just generally isn't true in any of the major city subway lines like NYC and Chicago
Even if they do, they'll just give the homeless guy a citation which he'll never pay. Don't get me wrong, the cops should definitely still handle crimes on the trains, as well as anyone who's trying to live there.