This is because “vegetable” is purely a culinary term. There’s no botanical definition of a vegetable. Tomatoes are berries, which is a type of fruit, from a botanical standpoint. So are cucumbers. They’re both vegetables from a culinary standpoint. Lettuce is a leaf. Broccoli is a flower. Carrots are roots. Celery is a stalk. All vegetables culinarily.
They are both, it’s not contradictory
This is because “vegetable” is purely a culinary term. There’s no botanical definition of a vegetable. Tomatoes are berries, which is a type of fruit, from a botanical standpoint. So are cucumbers. They’re both vegetables from a culinary standpoint. Lettuce is a leaf. Broccoli is a flower. Carrots are roots. Celery is a stalk. All vegetables culinarily.
Except funghi