SF despite being dense and having high transit ridership for a US city is still fairly car oriented. If the endpoints of your trip are not near Muni/BART station it's going to take twice as long on transit. And the hills can make the walking part difficult for people who are elderly, disabled, or need to transport items.