You're missing one thing - a restaurant is more then the delivery of food to a plate.
Just because they can have food made for food delivery services, doesn't mean it will be the best choice for regular customers.
Where restaurants compete with food delivery is by being in a physical location that people seek to have an experience. Or a quick stop on a car ride. Or a fast snack near work.
For some restaurants food delivery simply won't work.