But they can deliver without being a middleman. E.g. they can work as contractors for the restaurant.
But now, instead, they are the ones taking the customer's orders, and hence they become the portal for the business (and thus, middlemen). Which is a bad situation for the restaurant owners.