If a restaurant is within 10 min of me, I just drive to it myself. If its 15+ min one way, I'll use DoorDash, but I don't get why the driver would drive 30 min for $5 including the use of their car and gas.
I’ve always assumed that DoorDash et al try to do this.
To your point, if I were to use them, quite a few of the restaurants are a good 15 minute drive from where I live. Which is further than I'd bother to go to get takeout. It's also further than I'd probably chance to get, say, a burger delivered as I suspect it would be getting cold by the time I got it.