Earlier quoted context omitted.
Almost everyone does search like that, its not about doing something but about finding best and easiest way to do something.
If you mainly deal with 1-3 languages on a daily basis that you have mastered, you don't routinely search for "How do I do xyz in P". Maybe if you're a junior or intermediate developer, or have a poor memory. But doing that frequently is a clear indicator that mastery have yet to been achieved. It's not wrong or bad to search for help, but it doesn't indicate mastery of the language you're using.
Secondly you don't necessarily need to know or master a language or tool for every kind of work. You can just choose to learn as you go along with it, in which case knowing how to search and use the most effective way to do something is very useful.