I mean, I suspect it has to do with the sacking of Carthage, it still seems strange to me.
In a nutshell because the Romans destroyed Carthage down to the ground. All the books which weren't burnt during the sack were given away to African tribes. There weren't any other major Punic settlements in Africa which rivalled Carthage in size and they were all swept away during the Arab invasion.