This makes sense for both teams. The suns need more shooting in the short term and both players give them that as well as a better back up center and sometime PF in Bamba. And maybe as important a high 2nd round pick for a player in a year where they don't have a pick.
The magic get a young SG to develop with the second unit and future 1st. Also Ross get's to go to a contender.