It's a language thing.
I was thinking about red peppers. It's also technically a fruit, but at least in my country nobody considers peppers a fruit but vegtable.
On wikipedia they say AKA paprika:
https://en.wikipedia.org/wiki/Bell_pepper
> In some languages, the term paprika, which has its roots in the word for pepper, is used for both the spice and the fruit