BOS does this to take a chance on KCP who was a elite 3-D Wing just 2 years ago, they also do this to retain draft capital/Save money and get out of the first Apron.
MEM does this to get off an extra year of KCP while also having the chance to compete with Simons/JJJ/Morant Alongside solid depth and role players.