The problem is that american restaurants refuse to do it the right way: in the rest of the world you don’t see those tablets, but rather you order and eat the usual way and at the end instead of taking the card the waiter/waitress just brings over a small card reader such as this one:
View attachment 2314907
which they also operate for you and all you do is insert your card (or tap your card/phone/watch) and maybe enter your pin if necessary. However, not a single restaurant in the US does this; they simply refuse to evolve past 1999 except for the few that have the bulky tablets on the tables.