Sure, and that's because you(or some previous owner of your property) gave away certain rights relating to the property to the HOA.
Because HOA owns that community. So "if you own the building" condition is not met, by definition.
That's not how that works. At all.
It kinda is how it works in practice. Seeing most of my friends who bought houses governed by an HOA constantly struggle with them has convinced me that HOAs are evil and should be avoided at all costs.
That's pretty much how it works here in norcal. HOA owns the land under the community, the common places etc. Only thing a "homeowner" has control over is from "everything inside from color of the walls onwards".