The need is driven by population density. The order of increasing freedom-sucking tyranny is: federal, state, county, city, HOA, wife.
Except that being in a community with an HOA is voluntary. If you don’t want to be subject to an HOA, buy a property that’s not subject to one.