Most of the nuts are this way. Pistachio, Almond, Walnut, etc. Nobody actually eats the fruit - just the seed. Mistletoe and Soapnut are also inedible.
If you mean why does " your fruit tree have no fruit " than it's either the tree requires another fruit tree to pollinate it or trees take time to mature before bearing fruits.