This has nothing to do with the law and every to do with the HOA that the people in this article from 2009 willing joined when they bought their home.
I know it's fun to hate on the USA at every given opportunity but this is less some systemic issue with the US and more a squabble between a few individuals who are violating a contract they chose to sign, and their neighbors who also signed said contract because they wanted to live in a place without laundry flapping about.