I am sorry that some critter attacked your fig tree. It might have been me though it was probably a raccoon or opossums.
I thought this was interesting:
Like a neighborhood—and a grocery store. Crocodiles sometimes dig dens under the roots of figs growing on stream banks. Tree-dwellers like monkeys, birds, and fruit bats enjoy the sweet fruit. Many other animals, including apes, elephants, rhinos, tapirs, and giraffes, eat ficus leaves and stems.
https://sdzwildlifeexplorers.org/animals/ficus-figs
Or like Matt said maybe it was a bear ...