Since your claim is based on a false premise, you have to continue with a false explanations.
A common AI approach is machine learning, where algorithms learn from data without explicit programming, picking up vast amounts of data to learn, identify patterns, and make predictions.