For a puzzle like this, the ability to leave the room and have everything reset to its original position when you come back is a way to prevent the player getting stuck.
What will happen if they push a rock into the wrong place and block their path? If they can't get around to the other side to push it out again, and they can't go back to the previous map and re-enter the room to have everything reset, how will they continue the game?
In your screenshot, it looks like the only rock that can be moved initially is the one two tiles below the character. So let's say you push it down, then you walk around to the right of it and push it left into the corridor. What happens then? The location has been saved, so you can't reload them in their original positions. You can't get around behind it to push it back out of the corridor. Stuck.