Because the infrastructure spend and land allocation is not evenly spread. In most places, there is a dedicated lane for cars heading each way, possibly with parking or at least a decent shoulder on either side of the road.
The same cannot be said for sidewalks and bike lanes, which may be non-existent or poorly maintained, and certainly never take precedence over the almighty asphalt.