From what I can find on the Internet, while they existed for over 100 years, they were rare. The main growth of HOAs has been since the 60's, as people moved to the suburbs.
HOAs were a legal entity that could be a party to the lawsuit that suffered harm from the breach of the racial covenants, occasionally succeeding in getting courts to evict the new owners. This is why you so often hear that their purpose is "protecting property values" - the concern was that property values would tank when black and brown people moved to the neighborhood. This was a valid concern, not solely because of any racial animus on the part of the neighbors (though there was plenty of that to go around). When any black and brown people moved in, the Federal Housing Administration might redline the neighborhood, and then nobody could get FHA loans to buy a house there.
Once the Fair Housing Act of 1968 banned racial covenants and curbed the practice of redlining explicitly based on race, their usefulness in court rapidly declined. I assume dues were still collected and there were still meetings to attend, and so they started inventing new ways of harassing undesirable neighbors...
Take those people and give them a legal mechanism to pass any rule they want, to inflict terror upon their neighbors and to control their lives at the threat of their homes.
It's pretty easy how it quickly becomes a situation in which "Reasonable men must sometimes do unreasonable things"[1]
It seems like a generational thing, but I can't relate at all to people's petty concerns about neighbors' lawn maintenance and paint colors and AC units.
It's waning now but evidently there were several decades in American culture where these things were of paramount importance to a vast swath of the population. Why?
Has anyone read a good book about this phenomenon?