Botanically, why are tomatoes classified as fruits, yet culinarily grouped with vegetables?

Answer

They develop from the flower's ovary and contain seeds, but have a savory flavor profile for culinary use

Botanically, a fruit develops from the flower's ovary and contains seeds. However, items like tomatoes are treated as vegetables in the kitchen due to their savory flavor profile and common usage in main courses.

Botanically, why are tomatoes classified as fruits, yet culinarily grouped with vegetables?
foodfruitvegetableproduce