The Barca family used their vendetta against Rome to advance their own interests in Carthaginian politics. As the Spartans told Agesilaus, the Romans didn’t know much about warfare until you started to war with them. :^)
That comment reminded me .... The Romans didn’t have much of a navy until they began fighting the Carthagnians.