Online has just been a recent thing, but the decline has been going on for decades;
The big hit to high streets has been people choosing to go 'one stop' shopping in supermarkets. Just consider how many businesses get replaced by an average large supermarket; butcher, baker, fishmonger...