It is possible that the tip was automatically added to the bill since you had such a larger party? Usually automatically added with a party of 8 or more.
This is exactly what happened. If you are going to leave cash tips, ask the waiter, and manager if necessary, to remove the large party service charge in lieu of equal or greater cash tips, or better yet have them apply the cash to your check before tendering the gift card.