I think the point is that not all HOAs exist for a good reason, but some do. As OP points out, it's important to distinguish between HOAs that act as stewards of a shared building or shared infrastructure, and HOAs that try to govern what individual homeowners do with individual plots of land with individual homes on them. Unfortunately we use "HOA" to describe both of them.