Mac mini with 2 screens

I have a Mac mini M1, version 12,5 Beta, with 2 monitors. When I shutdown my monitors for some time, ( for 10 minutes or all night) when I turn on, all the windows are gone to the main screen.....

What can I do?? Thanks