Yes, but a restaurant wouldn't be entering into these special deals if it wasn't beneficial to them as well. Even if the margins are much lower, it could be offset by the increase in number of customers/orders.
I've talked to people who run restaurants and in their words uber eats is not worth it economically. They just do it, barely breaking even, as a marketing thing, hoping people will like the food and go to the real place.