Yes. Some laws are the new pat down method, a weight limit, paying in credit card only, and not letting suspicious passengers ride. This can vary from country to country.
Mostly they fill a perceived need as seen by a member of the Legislative Branch of government, or this need is brought to the legislators attention by a citizen or group that is advocating for a law...