I disagree with this. I live in SF and the roads range from terrible to just-ok. And not just in the city; US-101 is just kinda ok (despite vaguely-regular maintenance), and many local roads I see in nearby smaller towns and cities (South SF, Daly City, Belmont, San Mateo) are -- at best -- just ok. Similar situation when I drive north toward Sonoma.
A major issue in SF proper is that crews are constantly digging up parts of roads to work on pipes or whatever, and then patch them in a haphazard, crappy way. Roads get fully resurfaced rarely. As an example, there's a super nasty patched and re-patched and re-patched and re-patched section of 18th St (between Minnesota and Tennessee) that has been a nightmare for at least 4 years now.
A section of Tennessee between 18th and 19th was resurfaced about a year ago (in part because there was building construction along the road that did heavy damage), but just this past week they were digging up a large section in the center of the road to do some work underneath, and when they patched it up, they as usual did a crap job, so the road sucks again.
I grew up in New Jersey (80s) and Maryland (90s), and the roads were much better maintained in both of those places, Maryland especially.