Depends. Established, well-behaved food delivery apps have agreements with the restaurants and have direct integration - not scraping. They take absurd margins, but that's a separate issue.
When the food delivery apps "scrape", it's sometimes okay, but often not: The food offered by a place might be made to be eaten immediately, in which case a 60 minute delivery might guarantee a horrible experience. The food might not even be safe to transport by intermediate handlers, such as if the food is not packaged in sealed containers. In both cases, the food place ends up with dissatisfied customers and bad reputation for something they neither did nor wanted to do.
John Oliver had an interesting video on the topic: https://www.youtube.com/watch?v=aFsfJYWpqII