In my area people will ride the commuter train (without paying) for hours and sleep on it. There isn't enough fair enforcement or will to remove them. Makes the train pretty unattractive for its actual purpose. I imagine that issue becoming even worse if it's just free.
People do that in my city too — they're homeless people who don't have anywhere else to go. The solution is to give them housing and jobs. Until that happens, I'm okay with them sleeping on the train if they need to.
That's just not true. The problem is that government housing is so terrible that sleeping on the street is preferable to some.
Public housing in Austria is high quality, cheap and plentiful, with two-thirds of Viennese residents living in it. Coincidentally, homelessness is a non-issue in Austria compared to the US (based on my experience living in the Bay for 10 and in Austria for 20 years).