Machine learning is reproducing the result of a process but not the process. It's easy to be confused about it, and many are. Just like when we call "thoughts" to be patterns of some sort, so then any sort of pattern is a thought. The logical error in this should punch you and any sentient being right in the stomach and leave you breathless for a few good seconds.