Hamlet's anger toward the court's public displays of mourning—especially Gertrude's—stems from multiple interconnected psychological and moral sources.
Hamlet perceives the court's elaborate mourning as theatrical and socially prescribed rather than genuinely felt. The contrast between ceremonial grief and authentic emotion strikes him as hypocritical.
Gertrude's hasty marriage to Claudius (approximately one month after King Hamlet's death) compounds the offense. Hamlet views this as betrayal of his father's memory, making her mourning appear not just insincere but actively duplicitous.
Hamlet's own grief is internalized, profound, and solitary ("I have that within which passeth show"). The court's performative spectacle highlights his isolation and intensifies his sense that true mourning cannot be externally performed.
Hamlet idealizes his father as "so excellent a king." The court's quick transition to normalcy under Claudius feels like erasure of his father's legacy—an insult to the dead king's worthiness.
Shakespeare's audience would recognize the tension between prescribed mourning rituals (black attire, prescribed periods) and genuine emotion. Hamlet's resistance reflects a broader cultural anxiety about ritualized vs. authentic feeling.
Hamlet's anger isn't simply misanthropy—it's a philosophical rejection of inauthenticity, a response to personal betrayal, and a defense of his father's memory against social forgetting.