Most video games include a failure state, which means players fail and try again many times before finally succeeding. That repeated cycle of setback and triumph teaches perseverance—the same lesson you'd learn from mastering a difficult instrument or picking up any challenging new skill.
In this way, games can quietly build resilience and determination in a way that feels fun rather than like a chore.