Especially considering most modern panels are expected to still have a good amount of life left in them after 25 years. (80% or more}
What sort of roofing lasts 25 years?
Composition roofs need to be replaced when they are worn out and not before that. Good materials competently installed could last 50 years, more in mild climates. If you have the kind of weather that will wear down a roof in 10 years you probably cannot have solar panels.
The degradation is about 0.25%/yr. Assuming no exponential drop-off it would take >50 years to hit 80%.
Essentially no one has had to replace their panels due to degradation losses as of yet (since the vast majority of panels have been installed in the past ~30 years).