I think this is because people Googling a question often end up at a SO post that answers a slightly different question. But since the keywords blazed a trail to a certain answer, that's the one that gets the upvotes, even though it's not the "correct" answer.
That’s incredibly common and so frustrating. The title will be “How do you delete a column from a dataframe?” and then they’ll include a bunch of super specific code and paragraphs of context. The only answer will be “You actually don’t ever use that column. Just don’t add it in the first place.”, which is not an answer to the title question at all.
This has happened to me many times.