Why is Google Assistant enabled at certain locations when watching videos on your mobile phone with headphones?

I noticed that Google Assistant is enabled, like when we say "OK Google". I've noticed this twice and this only happens at some point when playing some animated videos. Why does this happen? Is it possible that the assistant listens to what is playing on a device even with connected headphones?