They won the league twice in 9 years with Ronaldo there because their squad was worse than Barcelona's for pretty much every single one of those nine years. Should have won it once more, but small margins happen and they lost the title by 1-5 points a bunch of times.
Their squad wasn't worse than ours due to sheer talent, the philosophy of the club carried us in a bunch of league titles in the last decade.
Both squads had a generational star, tons of quality players that won titles with NT/other clubs and money to outspend the other 18 teams in La Liga. But only Barcelona has the weight of stepping into the pitch 52 games a year and blow away the other team with good football every single game.
Real didn't have that urgency in this era, they're built to win, that's how they're so competitive in UCL legs, they adapt to their rivals and overpower them in different ways, but when they look at La Liga they don't think "We should've played better vs Rayo instead of defending after we scored the second". Their players perform in line with how close they are in points to us. Sometimes we screw up and they're able to capitalize because they did "just enough" to be within distance, other times we don't screw up and end up with the title while they're dumbfounded thinking "if only we took seriously two more games..."
That's how a squad with Douglas, Bartra, Adriano, Mathieu, Aleix Vidal, Andre Gomes, Turan, Rafinha, Munir and Sandro as bench depth was able to beat another with Arbeloa, Danilo, Nacho, Pepe, James, Kovacic, Isco and Jesé.
It's not like they have to beat only Barcelona in a best of 38 games season, they face us two times a year and had a team capable enough of besting anyone in Spain, but the difference in mentality between "I have to get out and play how I'm supposed to play" vs "We're just 1 point behind the first, guess we can let go a little" is huge if you look at it from a 10 season perspective.
And now, with 4 UCL titles in their pocket and excuses to underperform (Zidane and Ronaldo gone) those same players that were slacking before success just want to avoid responsability.