There are 2 different categorization systems - botanical and culinary. Both are valid systems for their topic, but ONLY for their one topic. Calling a tomato a vegetable is the correct answer for cooking, but the incorrect answer for botany, and vice versa.