I can guarantee that the locals didn’t vote for any ordinance banning music from a stationary truck. These people often have no say in the laws that are created by those who run the city. And stop being naive, most cultural norms are unsaid and unstated, not written down.