A grammar school education
Shakespeare received an education in the Classics. At school, students translated from Latin into English and from English into Latin. Ordinary conversation was in Latin; any boy caught speaking English was flogged. And they mastered the tropes of rhetoric. He would have studied Ancient texts including, Aristotle's 'Rules for a Successful Tragedy' which included the following:
Hamartia - the tragic flaw (or mistake) that leads a potentially 'good' hero to their doom. Audiences will feel no pity for an 'evil' tragic hero and won't enjoy watching a good man get punished despite flawless behaviour - only a good-but-flawed hero can elicit pity and fear.