Let's start from the end: often, we want to teach notions, which is not the easiest but can be done with some thought. A recent good example is Pentiment, an engaging mystery RPG deeply grounded in medieval history. Or maybe we want to teach skills, trickier but doable — here's a list of examples https://web.archive.org/web/20230118100105/https://www.fandomspot.com/study-video-games-that-teach-life-skills/
But be too literal, you make a boring game no-one wants to play and re-play. Make a fun game but the gameplay skills transfer badly into real life skills. #TheStruggleIsReal