Homeless people in california are provided shelters irrc, that still doesn't decrease its numbers.
The truth is most homeless people are addicts with/or struggle with mental health problems. Housing is ridiculous right now, specially in cities. But that is not the main driver for the homeless population