Not knowing is the feature
A timer you can see counting down changes how people play: everybody watches the last five seconds instead of the game. Hiding the length until it rings puts the attention back where it belongs.
The length is drawn before the countdown starts, so pausing the tab or switching away cannot make it longer or shorter.