This used to be common with tips at restaurants. The would take your card to the back and swipe it, then come back with the receipt. The receipt had a box for a tip. When you left they would then charge the card for the total including the tip.
With chip cards restaurants now tend to bring the card machine to the table. This way you can enter the tip on the machine and complete the payment without the card leaving your hand. I don't know if this is because the machine is there anyways or because chip payments need to know the amount when the transaction is authorized.