Optimal gamma is crucial for identifying 'near-normal' anomalies that lie close to the established normal data boundary but are genuinely out-of-distribution. It prevents both over-smoothing (low gamma) and over-segmenting (high gamma) that would either blend these anomalies as normal or flag normal points as anomalous.