Safety is only one of the issues. Convenience and comfort are others. Basically a city needs to decide whether it wants people to use the bus, and then act like it.
Ridership collapsed in 2020 because of the pandemic, for obvious reasons, but it's hard to really blame that on the service itself, or the riders.
Ridership has been gradually recovering since then. Total trips are now up to something like 70% of 2019 levels, and continuing to rise. Number of unique riders is actually above the 2019 level now.
Maybe you haven't tried riding BART again within the past several years?