The Sixers do this as they get Cam Johnson who is a valuable vet who can contribute now on a very team friendly contract as well as getting the Nets 2026 first round pick which will be in the lottery in a strong draft giving them flexibility if the process doesn't work out and they need to rebuild.
The Nets do this trade to get a guaranteed star player to start building their team around which they haven't had yet since they started their rebuild and give up their pick as they also have control of Atlantas first round pick which will be very valuable next season (most likely top 10).