I suppose so. The only one I found explained was the donkey one.
A town was flooded in 1924 where they wasted a lot of time searching for a missing donkey. To avoid it happening again, they banned donkeys sleeping in bathtubs at night.
The cheese factory law is probably an interpretation of a more general law about not being allowed to sleep when working in food production.
The ban on kangaroos in barber shops also includes flamingos. I do not know the source of that, but Alaska does have a lot of strange laws about animals. Mostly moose.