There is no general law on the subject. Rather each pool owner can make the rules for his, her, or its pool. In this case, the rules are set by the HOA and they have the authority to do this. They could also change the rules, if you can convince a sufficient majority of the board to do so.