In the former category people are primarily doing carryout from places built around carryout in that there aren't servers waiting tables and bagging up orders. In the latter category people tend to more frequently do carryout from actual restaurants and in those cases they really are interacting with an otherwise typical server.
I realize it's completely arbitrary, but so is tipping culture in general.
To be honest, unless I'm leaving cash, I have my doubts about whether the tip actually makes it to the server.
I would be shocked to hear of any restaurants that do that. A warning sign would be the owner running the register.
And for one data point: the restaurant I worked at would convert all tips on credit cards to cash that the servers could take home that day at end of business.
It's not just a tax matter; if the audit uncovers fraud, they refer the case to the DOL and the DOJ.