The computers aren’t thinking or learning. It’s just modelling fancy probability statistics.
E.g. classical neural networks are basically a load of linear regression equations with an activation function stuck on the end of each of them. No magic. Just lots of linear regression.
This stuff only works when:
1) you are trying to solve a specific problem that is suited to probabilistic models
2) you have a data set that is sufficiently large, varied and specific
3) the model is developed, trained, tested, implemented and updated in a rigorous and sensible manner