The issue is that some places (like the US) are designed around cars rather than just treating them like another form of transport. Having shops and businesses miles from homes is bad design regardless of whether cars are a thing or not. Designing on the assumption every person will drive and having thousands of parking spaces is bad design for similar reasons.
The difference between driving and not driving is between going where the government deems it worth going/getting there in a far longer timespan and getting to wherever you want at roughly your own pace. The issues come from the assumption it's the only way to travel and societies designed around that idea.
This is leaving out a lot: your own pace is heavily impacted by traffic, the system is enormously expensive (around where I live, it’s tied with food as the second greatest household expense), and in many cities that freedom was constructed by removing other people’s freedom to have healthy neighborhoods.
Driving can seem like freedom but that’s because it’s heavily subsidized: not just for things like road infrastructure but also the less obvious things like not having to compensate the millions of people whose health is seriously impacted by car pollution or being allowed to carry grossly inadequate levels of insurance which mathematically ensures that the hundreds of thousands of people injured by cars every year will not be adequately compensated. That freedom is the illusion caused by shifting the costs to other people’s health and quality of life!
I’d probably wager that being a pedestrian is less safe than driving.
But also, even if it is, this doesn't mean we should drive instead of walk to reduce our risk - it means everyone should drive less to reduce risk for everyone.
Everyone was very safe on foot, bikes and transit before there were so many cars. Cars made it dangerous to walk, so now everyone is in cars, which also makes driving more dangerous. Then people buy bigger cars that give them higher chances of survival in a crash at the great expense of everyone else involved, so everyone is buying bigger and bigger cars now.
I remember hearing a statistic (I can't find the source yet so please treat it as unverified) that a non-trivial proportion of pedestrians that were run over were intoxicated (the pedestrians, not the drivers).
I'm not saying this to assign blame to one party or another, just to refute the simplistic statement that it's just the drivers' fault.
The problem is that if someone is killed, they aren’t around to argue their side of the story and most cases simply aren’t investigated.