I’d like to point out that the notion that most medieval Europeans never travelled beyond their place of birth is increasingly shown to be a misconception. Most peasants at least visited the nearest town frequently for trade and to attend processions for religious holidays, and many made a point of going on a major pilgrimage at least once in their live. There also the fact that people were often forced to relocate because of wars and famine, went on crusades, were sent away to learn a trade, or simply visited distant relatives. The thing that didn’t happen was tourism, which is how we mostly think of travel today. Here’s a medievalist’s perspective on it, and it’s not hard to find more sources if you go looking for them: https://medievallauren.wordpress.com/2020/12/02/medieval-myth-busting-travel/
It only applies to Hamburg residents. Note that you are still required to observe all other Hamburg regulations concerning dogs; mainly: keep your dog on a leash outside of designated dog zones (it’s possible and common to get an exemption, but it requires you to pass a test and pay a fee - not something that’s worth it or feasible for only a week), and pick up after your dog.