The feeling I had was Perez wanted to renew Ramos' contract, but they couldn't reach a deal. PSG offered Ramos everything. Anyway the motto "Nobody is bigger than the club" applies fully to Real Madrid.
According to the rumours Perez wanted to give him a 1 year contract while Ramos wanted 2. So Ramos and his brother started bluffing saying "That Perez should plan the next season ahead without him". So Perez went and got Alaba and told Ramos the 1 year deal is off the table.
And if I'm not mistaken Ramos press conference before he left also alluded to that.
Meanwhile at Barca we have Busi until 2025 , Mats until 2025 , Alba until 2024 , Pique being able to decide when he wants retire and negotiating with Roberto for the past 3 months.