The meeting with his mother wasn't really private. There was a spy in her chambers. The king had ordered his old adviser Polonius to hide behind the curtains. Polonius was to listen to the conversations between Hamlet and Queen Gertrude and then pass on everything he heard to the King.