Not sure this had been brought here but it looks like you don"t really "rest where you are".
It looks like you're teleported to a specific area that doesn't exist anywhere on the map (like the main camp) but with an environment that fit your previous location.