I think pubs are mythologised slightly yes, but many, especially in rural areas, do live up to their importance by acting as important social centres for people who might not otherwise interact with many people, and not have much else to do (definitely the case where I live), also giving over their space to community/charity events etc…
You’re right though, the problem is definitely not just linked to the pub trade.