Unfortunately these rules punish dogs and good owners, while they’re smugly ignored by bad owners.
A well behaved dog off-leash is not a problem - but the rule isn’t against badly behaved dogs or inattentive owners - the rule is against off-leash, period. It isn’t fair to the good ones.