Most HOA's are formed when a developer plats a subdivision. They attach the Covenants and other deed restrictions at the property at that time. They do it so they can maintain control over properties they have already sold until they have sold every property in the development. They want to maintain that control so they can cultivate the image for the neighborhood that maximizes their ability to profit from it.
This notion that HOA's get created for altruistic reasons is almost universally false, and should go away. Yes, some HOA's survive in a way that isn't toxic, but even that is really in the eyes of the beholder.
Sounds like a good use-case for sortition. Require that people "submit to the potential for being drafted for HOA service" as part of the purchase agreement of the houses built in the development. Then at least the HOA will mostly be composed of harried people who don't want to do the job and want to get it over with as quickly as possible; rather than busybodies with idle hands.
[1]: https://www.fcc.gov/media/over-air-reception-devices-rule
Like any human collaboration they can be awesome or terrible. A good HOA can manage resources for ammenities like pools and sports courts, they can help homeowners settle disputes over things like fencing and street parking. Like many volunteer orgs, they're run by those willing to volunteer - which are not usually the most capable at the job.
At the end of the day HOAs do get a lot of heat because they often enforce community guidelines on things like mowing your lawn and not painting your garage door to be the nazi flag. Like anything, this is a tradeoff - you may want to run a ham antenna in your backyard and be told you're not allowed.