In many areas, there's a huge reason -- the availability of labor has decreased, so cost of labor has skyrocketed, along with inflation generally that can't always be passed on to customers.
Restaurants that used to be able to afford 2 servers can now only afford 1, so customers have to order digitally because otherwise it's too many tables for 1 server otherwise.
You don't have to be McDonald's scale. I'm talking about independent small restaurants.
(I agree it sucks for the customer -- I'm just saying restaurants are being forced into this. They're not doing it for fun.)