Kepa is a smart goalkeeper and he is a Spanish too. It's good for him to return to Spain and play for a biggest club there. Real Madrid will have a good goalkeeper to replace Courtouis without big spending on transfer market. They won't have to wait for months to see good adaptation from Kepa because as a Spanish player who was called for Spain national team many times, Kepa already familiarized with some Spanish players in Real Madrid. In addition, he understands well about La Liga and tactical formations of Spanish clubs.
Kepa current status may be that he is a keeper on loan, but if we look at Courtouis condition, the injury is very fatal and the contract in Madrid will not be renewed automatically, in my opinion, Kepa has the potential to make it permanent in any way. Courtouis, Modric, and Kross both have contracts ending next year, so it makes sense that Ancelotti is gradually starting to prepare Madrid's foundations. Rodrygo. Because if the vacancy problem is resolved, Madrid has returned with a formation that can worry the opponent's defense.
Courtois is only 31 years old (nothing for goalkeepers) so despite the severe injury I'm sure Real Madrid will consider him number one for a long time to come. Neuer is 37 and has suffered a much more serious injury, but Bayern continue to count on him (I don't support that, by the way). The situations for Modric, Kross on the one hand and for Courtois on the other are completely different in my opinion.