It should be illegal because these services market a subscription to you claiming the benefit of zero fees and free delivery, which is a lie. You are being secretly charged through a higher menu price, none of which is shown to you as a customer.
I can't count how many friends I have had to explain this to who don't understand they are paying 20-30% more even after getting "free delivery" than if they just ordered directly through the restaurant.