Sleeping in weird places=Loss of memory?

I’ve, countlessly, been sleeping in a different beds, or a different state, city etc. And I’ve woken up to freak out about where I was. Just for a second or too, I blindly look around me and start to think, “Where am I?” Sometimes it gets so intense I start screaming, and then after I realize where I am I sit back and think how stupid I am. Has this ever happened too you? And what do you think causes it?

It’s happened to me once or twice. I think it’s because when we first wake up, we are still groggy and so our full memory isn’t functioning at full capability.
so if it is in a different place than we expected, it can be a bit of a shock.