There are solar generating facilities literally everywhere now. To mount them high enough to park under is a miniscule cost difference. There are also already massive parking lots with covers all over the place. We have probably 5,000+ covered parking spaces at the airport in my city, for example
The energy generated by commercial solar installations is then sold, generating income. No one’s expecting parking lot owners to do this out of the goodness of their heart