I doubt there’s much State’s can do to stop HOAs from existing. It’s a contract between the homeowners. There’s a lot of economy of scale for group maintenance as well (e.g. landscaping costs are significantly less for adjacent properties).
Like most things in the USA, you can vote with your wallet and live somewhere that doesn’t have an HOA.