This explains it perfectly towards the end.
It's known as 'mutual knowledge'.
Ultimately, you both know that a situation is awkward, but by acknowledging the fact, you are letting them know what you know what they are thinking. Thus changing the fact.