A lesson has to be part of the plot
Edutainment often placed lessons inside a game that had nothing to do with them. The authors say a moral lesson has to drive the story forward, or it gets in the way of deeper thinking (chapter by Lance Vikaros and Darnel Degand).
From Schrier and Gibson, 2010, p. 205.