Hamlet had just killed Polonius and had been seen dragging him out of his mother's bedroom. In the beginning of the first scene of this act Claudius and Gertrude were speaking about this as well as what to do with Hamlet. They told Rosencrantz and Guildenstren to find Hamlet and bring him as well as the corpse to the Chapel to get rid of it.