Before doordash delivery was rare. Most restaurants just didn't offer it, it was too hard. There were exceptions such as NYC where density was high enough, or food types such as pizza which worked very well for a delivery model.
Not an argument that the current setup is ideal but connecting customers, delivery people and restaurants IS the service that doordash et al charge for.