The question is more what the purpose of the second membrane with the hole in it is. It turns the drum into a Helmholtz resonator and increases the emitted sound energy. Sound waves travel by alternating in energy expressed in pressure differentials and energy expressed in the momentum of moving air. A drum membrane offers a lot more resistance to movement than air does which allows somewhat efficient transfer of energy from the beater to the membrane. The membrane then emits some amount of that energy through vibration and transfer to the drum body. When the drum is open, there is comparatively little pressure change contributing to a low-frequency sound wave, when the drum is closed, the pressure change is large but not allowed to escape.
Giving the drum a port hole both allows for significant pressure buildup and a resulting large escape velocity through the port hole, making for a quite more defined thump and quite faster decay of the drum membrane vibration. For a sound composition that is geared towards feeling the bass kick more than hearing it and delegating its contribution mainly to the low frequency spectrum, that is helpful.
Of course, ;ocations near the port hole also offer a high signal to noise ratio for highly resilient microphones, with a large focus on the low frequency thump and comparatively modest pickup of the subsequent membrane vibration.