Your iPhone keeps going to the Do Not Disturb mode because you must have a schedule for Focus settings. You can follow the steps in the second section of this article to change these settings.