Why is a beehive used in the preparation of hydrogen

I assume you know what a beehive is.

It is used to support an upside down collection vessel over the beehive, the beehive lets gas escape only through the "roof" to go into the vessel.