In addition to charging the restaurant, the delivery service charges the customer a higher price than the restaurant would. They add delivery fees and service fees. On top of that, the online menus in the delivery service apps often have higher prices than the restaurant’s “real” menu.
Restaurants often negotiate special deals with the delivery services, so all these details can vary. However, delivery app margins are much lower than carry out or dine in margins.