It’s not about having the money laying around. It’s about seeing if the cost over 25 years of electric bills is higher or lower than financing $20-30k.
If it’s more expensive to pay for 25 years of electric bills, buy the solar. If it’s more expensive to finance solar and maintain, keep paying your electric bill.
In some places and buildings, it’s cheaper to use solar. In some it’s not.