Since always. If you're getting takeout from a sit down restaurant, even if you're not being served you're still getting service from the kitchen. The kitchen staff is tipped out by the front of house, so when you don't tip from takeout the front of house is tipping the kitchen out of their own pocket.
That's why the customary takeout tip is 10%.
Source: friends who work in restaurants.