A typical scenario is when the water level in the boiler falls below the safe limit. This can cause the boiler to overheat and ultimately fail due to the metal walls softening.
The plug is placed below the water level. If the water level falls below the plug, the boiler starts to heat and the plug operates, releasing steam.