Many buildings do not have a gas supply and many cities in Europe do not have metropolitan gas network at all.
Resistive loads are at best 100% efficient, your average heat pump is about 300% efficient.
Italy at least the southern parts of it and some other countries like Spain for example can probably transfer to a passive thermosolar water heating system like Israel uses.
TBH I’m not sure why it’s not more common around the world it’s cheap and fast it’s nothing more than a frame with some pipes in it covered by a pane of non-IR blocking glass.