By effectively regularizing the latent space, the AAE discriminator aids in learning more robust and disentangled representations, which enhances anomaly detection by making normal data well-clustered and anomalies more distinguishable as outliers from this structured distribution.