The DNA of nuclear models: How AI predicts nuclear masses