Many parents use tablets/phones as pacifiers at restaurants / similar venues. If you weren't judging them for using technological pacifier, you'd probably be judging them for bringing a noisy kid into a restaurant.
It's quite possible that the kid rarely gets to use a phone at home where it's acceptable to act like a kid.