Hi-Fi Rush was an IP sold by Microsoft themselves. Square Enix sold Tomb Raider and other IPs to Embracer. Companies do sell IPs.
In both these cases the entire studio that created the IP was sold with the IP or the studio would die.No company EVER sells IP unless they are dying.
Not some one game deal where a random dev is given ownership cause they helped develop a legacy IP