Golden State has a TON of money tied up in just a few players, with only 9 players heading into next season. With the acquisition of Richard Jefferson (total wtf move, btw) and what they're paying him they can (should) move Dorrell Wright to get a couple pieces to fill the bench, which is exactly what this trade is. Helps GS since both guys can play multiple positions while being on reasonable cap-friendly deals. Raps get a legit starting 3 or exceptional sixth man who can shoot the lights out and play solid defense.
Certainly not a sexy trade, but i think pretty reasonable for both teams.