Windows 11 has Do not disturb, which holds banners back and puts them in the notification centre, and Focus sessions, which turn it on for a set time. Windows 10 calls it Focus assist, with Priority only and Alarms only.
Both can turn on by themselves: while you're presenting, playing a game, using an app full screen, or at set hours. Check Settings → System → Notifications if mail notifications stop.