The DBG module (called also DBGMCU in older STM32) is an interface between the processor and the on-chip debugging components. From user perspective, the most useful feature are the "freeze" registers, which allow to stop clocks to certain peripherals (e.g. timers, I2C, CAN, watchdogs, etc.) while code execution is stopped by the debugger. Another feature enabled by DBG/DBGMCU register bits is the capability to debug (leave processor's clock running) in some of the low-power modes.
In most STM32 families, the DBG/DBGMCU registers can be written simply without any further action. However, in the 'F0/'L0/'G0/'C0 and 'U0 families, DBG/DBGMCU registers cannot be written 1 without previously setting a dedicated clock enable bit in RCC: RCC_APB2ENR.DBGMCUEN in 'F0, RCC_APB2ENR.DBGEN in 'L0, RCC_APBENR1.DBGEN in 'G0/'C0, RCC_DBGCFGR.DBGEN in 'U0.
In other families, there is no such DBG/DBGMCU clock enable bit in RCC. We can only speculate here what's the reason for this difference - maybe this is due to the fact, that 'F0 is based on the Cortex-M0 processor core and 'L0/'G0/'C0/'U0 are based on Cortex-M0+ core.