This is better advice than staying silent (at least in the US). If you stay silent, then police can keep questioning you for as long as you're silent and they want to. When you say you want a lawyer, then they're required to stop questioning you.
In other words, the act of remaining silent is not enough to invoke your right to silence. You need to break your silence in order to invoke your right to silence
My advice to my son has always been: if you’re arrested for any reason, whether you did the thing or not, you become a Pokémon named ‘lawyer’.
This is better advice than staying silent (at least in the US). If you stay silent, then police can keep questioning you for as long as you're silent and they want to. When you say you want a lawyer, then they're required to stop questioning you.
In other words, the act of remaining silent is not enough to invoke your right to silence. You need to break your silence in order to invoke your right to silence