The mind quickly falls apart when interaction-deprived (at least human one). This whole “comes from the mind” is just a metaphor, because the mind is also the arriving point, so it’s like “knowledge is defined by and comes from where it arrives to, on itself”. This semantic no-op nonsense originates in taking this metaphor literally, which one should not do.
What physically happens is that a mind accumulates and (sometimes) systematizes information from outside, and knowledge is the result of this concentration process. Akin to a puddle collecting water from higher grounds. But it doesn’t synthesize water by simply being concave.
Blowing ideas out of poor metaphors is a regular thing in religious texts, so be careful with that if you want to build some practical world view.