Call it thematic integration or resonance or ludonarrative assonance: here’s a deep discussion about making your game's mechanics match the theme, and vice-versa (video):

https://www.youtube.com/watch?v=urOxG_nZ2F0