It depends what delivery service the restaurant contracts. It can be in-house, a 3rd party like Relay, or a delivery app like Doordash. But even if Doordash delivers, the restaurant still keeps more commission from the order itself if you order directly.