I'm guessing you're not a parent. As the parent of a 3-year-old boy, I'd like to weigh in on this. There are three kinds of parents out there:
1) Those that simply hand their kid a phone/tablet every time they're out and about. This is probably bad.
2) Those that never let their kid use a device at a restaurant. This is pretty rare.
3) Those that use the device in times of true need: their kid has been at the dinner table for a long time and needs some distraction so the parents can get through their meal. This is where I fall, and I think it's ok. Most three year olds are not built to sit quietly and eat a meal at a restaurant. I guess maybe back in the day, people would simply leave their kid with a sitter and go out to eat, but that's not always an option.