Ophelia tells Polonius about Hamlet, how he was dressed crazy and staring at her to a point that frightened her. The audience knows, because Hamlet has just told them, that he is going to start acting crazy in order to do a little digging into the death of his father.