AirPlay passcode screen appear even though Airplay is off in settings

I’m currently living in a building with a shared WiFi. Twice over the last few months a passcode for connecting Airplay to my AppleTV popped up on my screen. Then last week it happened 5 times in about 5 minutes. So I turned Airplay off on my AppleTV. About 10 minutes ago it happened again -…

 https://forums.macrumors.com/threads/airplay-passcode-screen-appear-even-though-airplay-is-off-in-settings.2390777/