nonetheless they benefit from having local production as that reduces the need for electricity from further away, which reduces the amount of transmission losses.
This effect is significant enough that even just rooftop solar in sweden means you're owed a rebate from the energy company, as you're saving them money.