Grant is a better player than Wiggins. He's a two-way player. Better scorer, better shooter than Wiggins and they have essentially the same salary. GSW sends a valuable first-round pick (it's the first after Steph's current contract ends), and Moody.
I know he doesn't have all the glamor that Markkanem or other stars have, but he has the necessary skills to be that second scorer that the team needs.