Freedom isn’t the same as lawlessness.
You are free to not buy the land of course.
Legally speaking one is often not buying the land but rather buying the unit. The land on which the unit sits is owned by a corporation (HOA), and as a condition of the lease you must abide by the corporation's rules.
* https://en.wikipedia.org/wiki/Leasehold_estate
If you don't want to live by an HOA's rules then don't live on the HOA's land, but rather your own land:
Also, if your neighbor asks you to vote to create an HOA, vote against it.
That some dead previous owner can unilaterally say 'none of that' and it be binding on subsequent transfers and heirs is opposite the freedom of association.
I don’t think anyone would argue with their regulation of common property; it’s their petty interference in private property that’s the rub.
There's some very significant differences between freedom to associate in a book club and freedom to associate in an HOA. If you don't like a book club, there is no scenario in which you are contractually obligated to join it and pay membership fees indefinitely. And the bookclub doesn't have broad legal authority, backed by the courts, to dictate how you maintain, use, and sell your personal property or even aspects of your lifestyle.