Sparse PCA enhances anomaly detection by enforcing sparsity constraints, meaning principal components are derived from only a few original features, which improves interpretability by clearly indicating which specific features contribute most to an detected anomaly.