Enlarging timers are usually designed to turn the safelight off for focusing, and I suppose that turning the safelight off during the exposure is just a byproduct of that arrangement.