The car did not replace the horse and cart. This is an oft cited and widely believed myth. It replaced mostly walking, but also cycling, trollies and trains. And it didn't do so until after a huge build out of infrastructure to accommodate drivers at the cost of everything else.
After the building of highways and roads cities were no longer walkable, people had moved out into the suburbs, their jobs were now a couple of towns over and they couldn't even walk to the grocery store. Cars enabled that, but politicians and capitalist were the ones who did that.
> It replaced mostly walking, but also cycling, trollies and trains.
And everything was carried on people's heads, yeah? The horse and cart was in use right up to the 20th century my man...there was no other way to move heavy items across land until the combustion engine (or canals thought that's not technically over land)