We can know what something does (on some axis) externally without knowing how it works. I know the sun produces light, but solar flares are still hard to predict. It’s easy to see that a sweat shop produces Nike shoes, but a fair bit more work to notice that the people inside are having a bad time.
We’ve uploaded a fruit fly, its encoding is not so large. Do you believe fruit flies are incapable of experiencing pain?