I'm not sure how true that is of course but it does make you think a bit. The optimal place where to put solar panels increasingly is becoming "wherever you can afford to". If vertical space is what you have, why not use it?
People in apartments don't have access to roofs. But they might have balconies. Balcony railings can fit a few solar panels usually.
You can buy solar panels for use on balconies in the supermarket in Germany. They only generate a few hundred watt. But that can add up to close to something like a kwh per day if you get a lot of sun on your balcony. At 40 cents per kwh. That's 12 or so euros per month. I pay about 70 per month currently. And I can get a couple of balcony panels for something like 200-300 euros. And I might get some money back on those even. The idea with balcony solar is that it might offset part of what your fridge uses. You simply plug it into a wall socket and your fridge takes that power instead of from the grid. All safe and approved equipment, the inverter cuts the power if there is no grid power.
I haven't done this (my balcony faces east and only gets a few hours of sun in the early morning). But it's easy to see how this could work.