Well yes, obviously.
It is the polite, respectful, face-saving way of challenging someone you believe may be in the wrong, while leaving them a way to either clarify the situation or step back from it without confrontation.
Mistakes and misunderstandings happen, and also sonetimes people are actually in the wrong.
"Oh so it is. It's just like mine! So sorry".
"No this one is mine. Yours is just behind it"
"Oh gosh so I am! Thank you for warning me!"
"Yes I know, I'm waiting to help my friend, she's on crutches and can't open it by herself"
"Oh! I'm so sorry. I'll join it"
" Yes I was being served but I had to get a QR code and there's no reception. The assistant said to just come back to the front when I had it"
"Yes, I am a woman"
"Oh! I'm so sorry, I mistook the door!"
That's a situation well socialised and reasonably empathic humans negotiate all the time.
It's the grease on which society runs.
I'm surprised you don't realise this.