Imagine that instead of buying a solar roof, you put the funds into a bank account instead. The rate of return on investment is the interest rate that bank account would have to pay to be equivalently profitable.
The rate of return on investment for a home solar roof is between 5% and 10% per year – well in excess of even the highest paying ISAs.