The 29-year-old forward joined Barcelona from Inter in the summer of 2009, but failed to match the high expectations in La Liga. He then returned to Serie A last year, moving to Milan, initially on loan, before joining the Serie A champions on a permanent deal worth €24 million in June.
"Zlatan Ibrahimovic is anarchic. At Barcelona, you have to play for the team for the full 90 minutes," Xavi was quoted as saying in La Gazzetta dello Sport.
"His style of play better suits the Italian league. There they have six to seven players who mainly think about their defensive duties and three attacking players who can focus on creating things without worrying about defending.
"We still text each other every now and then. He is very happy with life in Milan. He was happy here as well, but Barcelona play a different kind of football."
Ibrahimovic will not feature for Milan in Tuesday night's Champions League Group H encounter against his former employees Barcelona at Camp Nou after picking up an injury in training on Monday.
Download the Goal.com Mobile app, and the world of football will be at your fingertips and in your pocket!