As a DevOps engineer, I had multiple encounters with undocumented software just in the past month. Viewing the source code certainly helped.
When you're taking a math quiz, the goal is to learn how to solve math problems, not bypassing the quiz.
What I really should have said is that in life, shortcuts aren't always appropriate. If you're an engineer confronted with the task of calculating the load the bridge can take, you're supposed to do the hard slog of calculating how much the bridge will take. Let's suppose that engineer didn't understand math, but simply cheated their way through University and took a guess - will you be stepping foot on the bridge?
Teaching kids it's okay to take inappropriate shortcuts is bad, because in the real world, inappropriate shortcuts can have nasty consequences.