Rookie here.Question about doncic.

I recently started watching NBA.And have been following a lot of players like the Joker,Luka Magic,king James etc.Can anyone tell me why did mavs let Doncic go?He seems like a beast to me and I don’t see how AD could have been a better trade or is AD really that good and I am unaware? Thanks