While homeless, I sometimes spent the night in a hotel or booked a cheap paid campsite to have access to showers, electricity, etc. I have no car and was camping in a tent, but that isn't the case for all homeless people.
Today, I tripped across this website for helping people find paid campsites: https://www.hipcamp.com
Some stuff on it is pretty pricey, but some is not.