Dig into that 1893 Supreme Court decision, Nix v. Hedden, and you'll find it's about the Tariff Act of 1883. They ruled tomatoes a 'vegetable' 'cause of the way it's eaten, like with dinner, not dessert. Purely for customs purposes. Wild to think that culinary customs influenced legal classifications!