Because they do the same mission: try to regulate business and residential areas to a civil, efficient manner.
For example, having a gay porn theater open up next to your kids elementary school would be bad. So would opening a gun range behind your yard. Or a drive-through liquor store with beer in vending machines next to a high school and hotel.
Its not always easy to "If you dont like it just move". A civil, efficient society requires some governance.
I've never heard of a gay porn theater. Most porn theaters have disappeared because the internet has made them obsolete. Furthermore, why would anyone put a theater of any kind in a residential area?
Also, why would a gun range open in a residential neighborhood? Like any other business, gun ranges want their high visibility to their customers. That means locating on major thoroughfares. That where gun ranges are typically located. Even if they did open in a residential neighborhood, the locals have little to fear. You can't hear a thing from outside the building, and bullets can't penetrate the walls. I've been in gun ranges that were located right between to busy stores. If shoppers have nothing to fear, then why would anyone in a residential area?
As for the liquor store example, I doubt you'll find any libertarians who think it should be legal to sell alcohol to minors. I've seen many liquor stores located quite near schools. Society hasn't collapsed as a result.
A civil society requires police to prevent criminals from mugging, killing or robbing you, a military to protect you from foreign invaders and a court system.
That's all the government it requires.