The electrical grid also cannot handle all-electric heating for all households, at least in Germany. France is different because of their big nuclear fleet.
Very often, green energy discussions forget that doing everything (heating, traffic, industrial processes) electrically needs an increase in electric capacity by a factor of 2 or 3 at least.