Mutually assured destruction (MAD)
In short, nuclear powers are on permanent alert to retaliate if they detect incoming warheads.
They’re outspoken about this policy because they want to signal that an attack on them ensures their enemy’s destruction too.