Seeing past this level of understanding is an attrition gate in any subject. What I mean is, the students who got past freshman chemistry to become good chemists are the ones who saw the creative element in chemistry.
Those same students may have taken the programming course and seen different codes as fungible with one another. Or in math, proofs, or in English, essays. I know people who came away from the freshman programming course, with the conclusion that "it's all just memorization." Clearly it means they didn't get it, but it also means it's a widespread impression.
As for chemistry, for reasons we don't know, part of developing creativity as a chemist is to get what they call "hands," which means being able to take care of yourself in the lab without wreaking havoc on everything. You need to have a sense of what can and can't be done in a practical process, in order to see your way through a difficult project.