As a small kid i once rode my kickscooter in a similar parked car, cause to be honest I wasn’t looking and also wasn’t expecting a car to pretrude like one meter into the sidewalk. While I was definitly careless (and also like 5) you should expect accidents happening when you leave stuff in places they don’t belong.
Even if you have the option to park directly in the sun, would you?
Being in a car that has been heating up for several hours of direct sun exposure is grueling. Switching on the AC to cool down to acceptable temperatures will probably drain more battery then was gained by the solar panel.