How were they selling a dollar for 80 cents? The actual food is more expensive on grubhub than ordering through the restaurant, and then there are multiple fees on top of that.
And that's all cost that is not borne by the restaurant.
And there is a limit to how much people would pay to get something delivered. So they're probably pricing the delivery, etc less than they've actually paid.