Active noise cancellation is far more complicated. It will involve microphones that actively sample the noise in an environment and afterwards create an inverse wave that cancels out These sounds. Think of it such as https://www.leo-brand.com/products/red-stereo-gaming-headset-for-ps4-pc-xbox-one-ps5-controller-noise-cancelling-over-ear-headphones-with-mic