There are a number of reasons why people might agree to such laws. Why they agree is not the critical thing, though. What is critical is that they agreed
The laws are based on the agreement of those subjected to the law. It is related to the "consent of the governed"
My way is the middle way. The way of moderation.
If you don't live by me, in my community, in my county even, what right do you have to allow or disallow anything? You don't. Neither do I where you hang your hat. Therefore (oh, wonderful, therefore!) what you and I find acceptable, that's to be allowed in our community should be left up to each of us and our co-inhabitants respectively and exclusively.