Snark aside, there are examples of community-scale energy infrastructure below grid-scale: see "district heating" and "co-gen plants". Sand battery people have been experimenting with neighborhood-scale infrastructure (though industrial heat uses is a better return on that tech right now)