Richard Burbage, the leading tragedian of Shakespeare's company (the Lord Chamberlain's Men, later the King's Men), originated the role of Hamlet himself. He did not play the Ghost; that role was likely taken by another actor—possibly Shakespeare himself.
Burbage's Hamlet was the definitive interpretation of the era. Contemporary accounts praise his ability to convey profound melancholy and sudden passion, his "personation" (embodiment) of the role. The part was written for him—its demands match his known strengths: intellectual depth, emotional volatility, and physical presence.
The Ghost, by contrast, requires a different skill set: spectral authority, limited stage time, vocal projection through the "cellarage" trapdoor. Shakespeare, as a working actor-playwright, often took smaller but pivotal roles (tradition says he played Old Hamlet, Adam in As You Like It, the Chorus in Henry V).
Burbage also originated Richard III, Lear, Othello, and Macbeth. Hamlet was his signature role—the one that defined the tragedian's art for a generation.