Obv he wanted to leave Ajax to go to a bigger league, ie Italy. Juventus wanted to keep him when they were relegated to Serie B, but Zlatan wanted out, namely to Inter. When Barca showed interest, he wanted to go, obviously. Pep and Zlatan had personal issues, which resulted in Barca needing to get rid of him. Milan sold him along with Thiago Silva because they needed the money.