Lakers may not even pick up Malik's TO so if they can get such value in return for him they would be crazy to pass it up. They do have to give up a decent pick but since they're trying to contend this is fine. They are also compensated with three seconds which can also fill out some roster spots.
Hornets move off Rozier's 3 year contract for Malik's expiring deal, they also get pick 17.