Because they genuinely cannot "google that in 5 seconds". Allow me to explain.
When people are searching for a solution to a problem, they sometimes enter a kind of "search mode". They read everything with a filter over their eyes. That filter is designed to search for solutions to the problem they're currently having. Any information which is not obviously a direct, complete, and comprehensible solution to the problem as they understand it is discarded by this filter.
Basically, when people enter "search mode", they're not interested in learning anything; they want the solution to their problem.
See, most "google that in 5 seconds" problems can't actually be googled that quickly. Not unless you know exactly what you're looking for. Most of the time, Google Search will take you to a page that has the answer, but you have to read through a bunch of stuff that is not your answer.
If you're thinking in terms of learning how something works, this is great. Googling a topic or question can lead you to a lot of foundational information. All of that "stuff that is not your answer" is useful and will help avoid problems in the future. It will give you a better foundation of understanding the system, and allow you to become a better programmer.
But if you're in "search mode"... you do not care. You don't want to understand the system; you want a solution, period. So all of that "foundational information" is just noise to you, and your "filter" will discard it. If Google Search links you to a page that appears to be pointless noise about stuff that isn't your problem, you won't find it very useful.
Even worse, note my previous phrasing: "the problem as they understand it". Many people don't really understand the problem they're having. They often think the problem is one thing, when it is something only tangentially related to it. Their vision of the solution is based on their understanding of the problem. And since their "filter" culls out things that don't look like the solution, but their idea of what the solution will be is wrong... they will cull out the actual solution.
Google is a useful tool, but getting the most out of it requires the right mindset. You have to go into it with a willingness to learn, not just to apply a pattern filter to find your answer. And a lot of people don't really think that way. Even some long-time programmers, when learning a new system, will often fall victim to "filter"-based reading. I know I have.