Answers
The reason why a person acts the way they act is because something bad may have happened in their past and they can't break free of it (can't escape fromthe past). Or they also may have something bad happen to them while they were in school (bullied).So this is why people act the way they act.
.
Osric's primary purpose is as comic relief, of course. But the particular point being made by his language is the artificiality of "courtly" speech.Claudius's public speech (for example, his opening monologue) is fairly roundabout and ornate but it is intelligible; it is courtly speech, but it's fairlysmooth. And in private conversation, he is more plain spoken.
Polonius, on the other hand, can't open his mouth without cluttering up his sentences with rhetorical flourishes and obfuscations (see, for good example,his attempt to read Hamlet's love letter to the King and Queen). He's gotten so used to the artificiality of the language of the court that he's incapableof leaving it aside when plain speech is called for, and is unaware that he does so ("Madam, I swear I use no art at all").
Osric takes courtly language to such an extreme that it becomes almost completely unintelligible. His language has so many twists and turns that he himselfgets lost in it.
Hamlet, on the other hand, has no patience for artificiality or duplicity of any kind. He mocks Osric by beating him at his own game, butit's unclear whether Osric is even aware that he's being made fun of.
Osric serves a third function, and that's as an example of the social levelling that was such a public concern in Elizabethan England; Osric has a place atcourt simply because he is rich, not because he has noble blood. The merchant class was rising steadily in the 16th and 17th centuries -- people who wouldin an earlier age have been considered mere shopkeepers were amassing huge fortunes and buying up the ancestral lands of the noble class, many of whom wereon the verge of bankruptcy. These newly wealthy "commoners" were flexing their political muscles, and demanding a place at the table. Osric may have beenone of these, or he may simply have been a "country" lord who would be considered out of place at court.
Either way, it's ironic that this "outsider" windsup as the ne plus ultra of courtly behavior.
(There's also a more direct parallel in one respect between Hamlet's exchange with Osric and those with Polonius, if that's what you're looking for.Hamlet's claim (in response to Osric's statement that the weather is hot) that it's very cold, and his immediate correction (following Osric's agreement asto the cold) that it's sultry is similar to Hamlet's conversation with Polonius regarding the cloud that's shaped like a camel or a weasel or awhale.)
.