Probably a bit of both.
He obviously loves Udinese, so it would have taken a lot to take him away from there.
If Barcelona or Manchester United had made an offer? Maybe. No guarantee, but maybe.
With the state Juve were in at the time, it was a question of: A) Stay at the club he loves, where...