Was this the right move?

Bey is a pretty solid young role player and it feels like Detroit coudlve committed to developing him but instead they sent him away

What was the purpose of this move? Seems kinda unnecessary