How did the beer gardens originate?

We all know what a beer garden is. But in [...]