He was already on a decline when he signed for Juve, why did you think past it and technically meh Mandzukic was able to push him out of the squad? His league goals per season went from 36 in Napoli to 24 in his first Juve season (still good but disappointing for what Juve paid for him), then to 16.