It’s not related to.
On metric event you define a monitor for an specific custom metric and you only can define static thresholds as monitoring strategy.
The anomaly detection service settings is global, so it applies to all services , and you can use static threshold or automatic as monitoring strategies.
Here you have information about sliding-window for metric events.