Actually, many HOA's only allow for a limited percentage of the neighborhood to be rented out. When we closed on our condo, we signed agreement with the bylaws that had such a restriction and we appreciate the reasons for it. Even if you don't have such restrictions on the use of your home, but you co-own your home with dozens, hundreds, even thousands of other owners, why would you be upset at being told you could not rent it out whenever and wherever you want? I'm okay to take one (inconvenience) for the team... and choose an unrestricted time to give to family, friends, or a renter.
My folks live in a condo whose HOA covenants explicitly forbid subletting/renting as well as short term rentals like AirBNB. My (deed restricted) community I live in only allows a certain percentage of (single family) homes to be rentals. And it's actively enforced.