It makes sense that they'd make a tomato-like fruit because potato plants, like tomato plants, are part of the Solanaceae (nightshade family). Also, not that surprising for the same reason that they are poisonous
https://en.wikipedia.org/wiki/Solanaceae