That's just being pedantic. They also don't "learn" to walk if their legs are cut off.
Your analogy was puberty, which in fact happens with development regardless of trial and error (i.e. learning).
The two developmental processes are clearly distinct. The distinction is that one is a process of learning and the other is not.