Your credit card already identifies you by name, and your precise location is known because you're at the restaurant by definition.
Your phone's dynamic IP. Which is a redundant, and much weaker, identification than your payment info.
> it becomes possible to calculate how long you've been in the restaurant
Also doable by the staff.. using their eyes. And most restaurants will use some form of system anyway to track the orders and payments, because that information is vital to running a functioning restaurant.
Your credit card transaction is bundled and sold. Because it has value in establishing a consumer profile for marketing.
The fact that you visited some restaurant PDF or webpage from a dynamic IP address is not.
Like the parent commenter said, any information about how long the table is being occupied comes from the POS and reservation system. But that data is for the restaurant -- there's no market in selling it, though it absolutely has value to the restaurant for its business decisions. But your phone isn't being used for that part.
Data collection is certainly a thing. But it happens in specific ways for specific purposes.
Using a credit card tied to your identity, but then worrying about revealing your phone's IP address while ordering, doesn't make any sense.