The main reason Utah does this with the hornets over Knicks is betting on the the picks to be more valuable coming from Charlotte. Hayward comes back to Utah where he'd get to be the guy again which (nothing against Gordon) means they have a chance at Victor. Bouknight is a bonus and Oubre is to make sure the team plays losing ball.
Charlotte does this to try to give LaMelo a reason to stay.