Because, supposedly, Agnelli was willing to fund part of the Dzeko deal personally as a gift to the fans.
He won't do that for someone he doesn't consider to be as exciting a signing, so you can't consider that Juve could actually afford to buy Dzeko within budget.